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 part of work on Custom fields API,
to minimize commit history in moodle core the work of a team of developers was split
into several commits with different authors but the authorship of individual
lines of code may be different from the commit author.
Now users can choose to exclude the question bank from the backup,
this will in turn prevent any modules which use the question bank
from being included in the backup.
* Root settings are now check boxes rather than selects
* Language strings adjusted as requested
* Final continue on backup now redirecteds to restore pre ui
* backup moodleforms for specific stages are now cached between stage processing and display making it possible to leave all validation up to the bridge.
* The backup stage now relies entirely on the backup controllers save, load, and check methods + dependency checks rather then previous stage processing to ensure accuracy.
* filename is now a required field and validated to ensure it ends with .zip and is a valid filename.
* There is now a previous button for backup stages after the initial and before the complete.
* The progress bar previous stages are now links as well allowing the user to jump to previous stages (not linked on complete of course).
* The root settings are only shown on the schema stage now if they were changed because of dependency.
* Stages are now numbered in the progress bar.
* The complete page now shows a notice that the backup was complete and provides a continue button to view the backup file.
* Adds administration blocks to the backup pages.