MDL-37761 Backup: Do not include files in backups when importing courses/activities
authorAndrew Nicols <andrew@nicols.co.uk>
Sun, 12 May 2013 15:53:57 +0000 (16:53 +0100)
committerAndrew Nicols <andrew@nicols.co.uk>
Tue, 18 Jun 2013 06:52:04 +0000 (07:52 +0100)
commitb1850c12c13fa2f3009abdfb8cc819c12be3c40e
treecc8eb7558a6411e5cd713922ec78ae88217742b2
parentf1454424b5a854257586e3e723e5879bada811f9
MDL-37761 Backup: Do not include files in backups when importing courses/activities

When we import courses or duplicate activities, the deduplicating nature of
the file_storage system means that we don't actually have to include the
real files in the backup - just their metadata from the file table.

The restoration process needs to know not to expect files from the backup
phase so a flag is set in moodle_backup metadata.
backup/controller/backup_controller.class.php
backup/controller/tests/controller_test.php
backup/moodle2/backup_stepslib.php
backup/util/dbops/backup_controller_dbops.class.php
backup/util/dbops/restore_dbops.class.php
backup/util/dbops/tests/backup_dbops_test.php
backup/util/helper/backup_file_manager.class.php
backup/util/helper/backup_general_helper.class.php