The Backup extension was designed to achieve the following tasks:
Backup: Make a Full or Database only copy of the site periodically or on demand.
Restore: Do a restore from a previously made backup.
Demo Install: Make an archive of the currently selected theme with all of its settings (database plus uploads directory).
Auto Install: Gives the ability to use these settings at the time the theme was activated.
Migration: Move a WordPress site from one place to another.
These two are the basic features of the Backup extension.
The backup process works the following way:
ABSPATH
directory. For Database Backup this is
the database content only.uploads/backup
directory. But it can be anywhere,
for e.g. Dropbox or Amazon S3.The restore process works in the following way:
ABSPATH
will be removed and restored from the archive.The Backup extension can be extended in only one way, by writing a custom Storage Layer.
Storage Layer is a way for the Backup Extension to stores backup archives.
To create one, create a sub-extension that implements FW_Backup_Storage_Interface
.
For an example of implementation take a look at the backup-storage-local extension.
Demo Install is the process of making an archive of the currently active theme,
packed with all of its settings (database plus uploads directory).
These settings are stored in the auto-install
directory under the theme parent directory.
Warning
This feature by default is turned off and is enabled only when the WP_DEBUG
constant is defined and its value is true.
If it’s enabled, a Create Demo Install button should appear on Backup page.
Auto Install is the reverse process of Demo Install.
This feature is enabled only when current theme contains the auto-install
directory in it.
If it’s enabled, an Auto Install page will appear under the Tools menu.
That page displays a button Import Demo Content and
by clicking on it, all tables from the database will be dropped and replaced by
the auto-install/database.sql
file. Also the uploads
directory
will be replaced with the auto-install/uploads
directory.
Migration is a term representing moving a WordPress website from one location
(e.g. http://localhost/site
) to another (e.g. http://site.com
).
This is achieved by:
uploads/backup/
directory on the new siteAfter opening the Backup page a new archive will be displayed in the Backup Archive list.