mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-35773 Backup: API should have option to not backup files
Allow both UI and automated backups to be created without including files. Instead include only file references. This is essentially implementing "SAMESITE" to backup files instead of only for import and export functionality. A new backup setting to include files (defaults to yes) has been included. The restore process will also look for and attempt to restore files from the trashdir as part of restoring backups. Additionally to support this process the ammount of time files are kept in trashdir before they are cleaned up via cron is also adjustable via admin setting.
This commit is contained in:
parent
f622ee97e3
commit
d7e4481e98
17 changed files with 190 additions and 18 deletions
|
@ -564,6 +564,8 @@ $string['experimentalsettings'] = 'Experimental settings';
|
|||
$string['extendedusernamechars'] = 'Allow extended characters in usernames';
|
||||
$string['extramemorylimit'] = 'Extra PHP memory limit';
|
||||
$string['fatalsessionautostart'] = '<p>Serious configuration error detected, please notify server administrator.</p><p> To operate properly, Moodle requires that administrator changes PHP settings.</p><p><code>session.auto_start</code> must be set to <code>off</code>.</p><p>This setting is controlled by editing <code>php.ini</code>, Apache/IIS <br />configuration or <code>.htaccess</code> file on the server.</p>';
|
||||
$string['filescleanupperiod'] = 'Clean trash pool files';
|
||||
$string['filescleanupperiod_help'] = 'How often trash files are removed. These are files that are associated with a context that no longer exists';
|
||||
$string['fileconversioncleanuptask'] = 'Cleanup of temporary records for file conversions.';
|
||||
$string['filecreated'] = 'New file created';
|
||||
$string['filestoredin'] = 'Save file into folder :';
|
||||
|
|
|
@ -127,6 +127,7 @@ $string['configgeneralblocks'] = 'Sets the default for including blocks in a bac
|
|||
$string['configgeneralcalendarevents'] = 'Sets the default for including calendar events in a backup.';
|
||||
$string['configgeneralcomments'] = 'Sets the default for including comments in a backup.';
|
||||
$string['configgeneralcompetencies'] = 'Sets the default for including competencies in a backup.';
|
||||
$string['configgeneralfiles'] = 'Sets the default for including files in a backup.';
|
||||
$string['configgeneralfilters'] = 'Sets the default for including filters in a backup.';
|
||||
$string['configgeneralhistories'] = 'Sets the default for including user history within a backup.';
|
||||
$string['configgenerallogs'] = 'If enabled logs will be included in backups by default.';
|
||||
|
@ -202,6 +203,7 @@ $string['generalcalendarevents'] = 'Include calendar events';
|
|||
$string['generalcomments'] = 'Include comments';
|
||||
$string['generalcompetencies'] = 'Include competencies';
|
||||
$string['generalenrolments'] = 'Include enrolment methods';
|
||||
$string['generalfiles'] = 'Include files';
|
||||
$string['generalfilters'] = 'Include filters';
|
||||
$string['generalhistories'] = 'Include histories';
|
||||
$string['generalgradehistories'] = 'Include histories';
|
||||
|
@ -328,6 +330,7 @@ $string['rootsettingbadges'] = 'Include badges';
|
|||
$string['rootsettingblocks'] = 'Include blocks';
|
||||
$string['rootsettingcompetencies'] = 'Include competencies';
|
||||
$string['rootsettingfilters'] = 'Include filters';
|
||||
$string['rootsettingfiles'] = 'Include files';
|
||||
$string['rootsettingcomments'] = 'Include comments';
|
||||
$string['rootsettingcalendarevents'] = 'Include calendar events';
|
||||
$string['rootsettinguserscompletion'] = 'Include user completion details';
|
||||
|
@ -337,6 +340,7 @@ $string['rootsettinggradehistories'] = 'Include grade history';
|
|||
$string['rootsettinggroups'] = 'Include groups and groupings';
|
||||
$string['rootsettingimscc1'] = 'Convert to IMS Common Cartridge 1.0';
|
||||
$string['rootsettingimscc11'] = 'Convert to IMS Common Cartridge 1.1';
|
||||
$string['samesitenotification'] = 'This backup was created with only references to files, not the files themselves. Restoring will only work on this site.';
|
||||
$string['sitecourseformatwarning'] = 'This is a front page backup, note that they can only be restored on the front page';
|
||||
$string['storagecourseonly'] = 'Course backup filearea';
|
||||
$string['storagecourseandexternal'] = 'Course backup filearea and the specified directory';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue