Hi @shin333
We’ve prepared a PHP CLI tool that allows backups directly via SSH. This ensures that our plugin won’t be affected by any web server-related limitations.
Please ensure that you have sufficient storage space for the backup. I recommend keeping a 25% buffer above the required free space.
Before starting with the PHP CLI, make sure the ZipArchive PHP extension is enabled. You can check this by running the following command:
bash
php -r 'echo class_exists("ZipArchive") ? "true\n" : "false\n";'
It should return 'true.'
Once confirmed, navigate to the root of your WordPress directory, then to our plugin’s directory like this:
bash
cd wp-content/plugins/backup-backup/includes
To view more details about the tool, run:
bash
php -f cli-handler.php
This will show a help message with output like:
========= BACKUP MIGRATION PLUGIN =========
Please specify a CLI function: bmi_restore [<backup_name>.zip], bmi_backup, or bmi_quick_migration <backup URL>
Examples:
– php -f cli-handler.php bmi_backup
– php -f cli-handler.php bmi_backup BMI_12-12-12_nameOfMySite_nameOfBackup.zip
– php -f cli-handler.php bmi_restore BMI_12-12-12_nameOfMySite_nameOfBackup.zip
– php -f cli-handler.php bmi_quick_migration "https://localhost/site/linkToMyBackup.zip"
========= BACKUP MIGRATION PLUGIN =========
To create a backup, simply run:
bash
php -f cli-handler.php bmi_backup
Let me know if you need any further assistance!
Thank you!