Introduction
The cli backup-tool gives you the possibility to create faster and periodic (eg. cron-jobs) backups from your pimcore installation.
Options
--filename|-f <string> filename for the backup (default: backup_m-d-Y_H-i) .tar is added automatically --directory|-d <string> target directory (absolute path without trailing slash) for the backup-file (default: /home/pimcore/www/website/var/backup) --overwrite|-o overwrite existing backup with the same filename, default: true --cleanup|-c <string> in days, backups in the target directory which are older than the given days will be deleted, default 7, use false to disable it --verbose|-v show detailed information during the backup --help|-h display this help
Examples
Just create a single backup into the backup-folder
php backup.php
Create a backup in a custom folder with a custom filename. If the destination file exists, overwrite it.
php backup.php -f myBackupname -d /var/backups/ -o