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:
ABSPATHdirectory. For Database Backup this is the database content only.
uploads/backupdirectory. But it can be anywhere, for e.g. Dropbox or Amazon S3.
The restore process works in the following way:
ABSPATHwill 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
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.
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
auto-install/database.sql file. Also the
will be replaced with the
Migration is a term representing moving a WordPress website from one location
http://localhost/site) to another (e.g.
This is achieved by:
uploads/backup/directory on the new site
After opening the Backup page a new archive will be displayed in the Backup Archive list.