Here is a procedure for moving a site to new server space:
- Back-up the existing site
- Using contributed module ‘Backup and Migrate’ to save site data tables and content as an sql file (only the ‘Quick Backup’ is needed).
- Export the current configuration as a gz file by using Configuration Management / Full Export.
- Take a note of the modules in use in preparation for step 4.
- Make sure you have an up-to-date copy of the contents of the following directories:
- files
- layouts
- modules
- themes
- Upload a fresh copy of Backdrop into the new server space and then copy into the relevant directories
- all contrib/custom modules used by the site
- all files (except the config_.... folder)
- all contrib/custom layouts
- all contrib/custom themes
- Access the new site and follow the normal installation procedure.
- Activate each module used in the site
- Import the configuration gz file exported in step 1.
The Configuration Management function will first load the json files into the staging folder and then check whether they can be loaded as active files. Any discrepancy, such as a missing module, will halt the process with an error message advising, for example, on which module is missing. Either install the missing module and try again, or if perhaps it is a result of a module that is no longer in use, delete the redundant json file from the staging folder before trying again by refreshing the configuration management synchronize page.
- Import the data tables (it is important to do this after step 5, not before).
Use Backup and Migrate to restore the site’s data tables saved in step 1.