wpbackup
CLI::Wordpress Backup
Updraft Plus
If you like to use a supported commercial backup/restore/migrate product then the UpdraftPlus Premium plugin (requires paid subscription) can be used.
see ../README.md for details
So, a typical new site starts with
rawp setup && rawp launch && rawp renewalgo to site and configure via front-end
new user
upload and install
updraftplus-with-migrator.2.23.3.zipupload and restore / migrate from source site
This will handle the original WP database and files
Then, according to the docs, you can go:
rawp wp 'updraftplus backup'rawp wp 'updraftplus restore <nonce>'
Git Source Control (Backup)
After your base site is running, you can push it to git.
see ./wpgit.md for details
This will initialize the WP files:
do
rawp git-setupdo 'Push (modified) Wordpress files to a (new) GitHub repo'
Then for the database:
rawp wp 'db export'do a git commit and push
export GPG_TTY=$(tty) git pull git add *.sql git status git commit -am'db backup' git push exit
rawp wp 'db import wordpress-2023-04-28-367cd92.sql'