WP-CLI commands
Back up, restore and move sites from the command line — no time limits.
Commands
wp nolimit backup [--exclude=no_media,no_revisions] [--label="Before update"] [--upload] [--scheduled]
wp nolimit restore <file> [--yes] [--email-replace]
wp nolimit fetch <url>
wp nolimit link <file> [--hours=24]
wp nolimit list
--uploadsends the backup to every connected cloud storage.--scheduledcounts it as a scheduled backup, so retention applies.restoreaccepts a file name from the backups folder or any path (it is copied in first).
Exclusion names
no_media, no_themes, no_inactive_themes, no_plugins, no_inactive_plugins, no_muplugins, no_cache, no_database, no_spam, no_revisions, no_transients.
Server-to-server move in two commands
On the old server (the first command prints the backup's file name):
wp nolimit backup
wp nolimit link <file name>
On the new server:
wp nolimit fetch "<the link>" && wp nolimit restore <file name> --yes