The main reason I want this is to be able to create a "save point" right before testing a migration. That'll let me roll it back quickly and test the migration with slightly different code.
Backup
I really only need the database backed up, but I might as well backup the files too.
Backing up would be something like:
Run wpsites backup
Pick the site to backup
Name the backup
Done
This would store a folder with the zip and sql file in ~/.wpsites/backups/ so something like ~/.wpsites/backups/iawp. Actually, it will need to support multiple backups for any given site.
Restoring
The process of restoration is a little more unclear. Restoring is basically creating a site off a specific backup with the same slug.
The more vanilla solution would be something like this.
Run wpsites restore
Select the existing site you want to restore
Select the backup to use that was made for that site with a "Select backup from different site" option.
Done
I'd also like to be able to create a new site from a backup.
Maybe there's a "Create from backup" option listed in the templates list when you run wpsites create?
The main reason I want this is to be able to create a "save point" right before testing a migration. That'll let me roll it back quickly and test the migration with slightly different code.
Backup
I really only need the database backed up, but I might as well backup the files too.
Backing up would be something like:
wpsites backup
This would store a folder with the zip and sql file in
~/.wpsites/backups/
so something like~/.wpsites/backups/iawp
. Actually, it will need to support multiple backups for any given site.Restoring
The process of restoration is a little more unclear. Restoring is basically creating a site off a specific backup with the same slug.
The more vanilla solution would be something like this.
wpsites restore
I'd also like to be able to create a new site from a backup.
Maybe there's a "Create from backup" option listed in the templates list when you run
wpsites create
?