Assistant for Percona XtraBackup - tool automates the process of create and restoring your backups.
- Simple use: only a few commands
create
,restore
,rotate
- Fully automated processes
- Display progress bars where possible (especially handy for large backups)
- Ability to work with remote storage (via SFTP)
Python 3.9 or newer is required.
project_name
(required) - the name of a project. It's used in backup file names and Slack notificationsxtrabcakup
(required):xtrabcakup.user
- the MySQL username used when connecting to the server (required for creating a backup)xtrabcakup.password
- the password to use when connecting to the database (required for creating a backup)xtrabcakup.host
- the host to use when connecting to the database (required for creating a backup)xtrabcakup.parallel
- the number of threads to use to copy multiple data files concurrently when creating/restoring a backup
sftp
(optional) - if set can be used to work with remote SFTP storage (upload backups, download during restore, rotate backups there)host
- the hostname or IP of the SFTP serveruser
- the SFTP usernamepassword
- the SFTP user passwordpath
- the path on the SFTP storage. It's used for uploading backups, searching available backups for restore and forrotate
command
slack
(optional) - if set Slack message will be sent in a case of failed backup creationtoken
- the access API token, the key to the Slack platformchannel
- the name of Slack channel to which notifications will be sent
rotation
(optional) - backups rotation settingsmax_store_time_years
- how many years backups will be stored on the SFTP storagekeep_for_last_days
- backups created for this N last days will be excluded from rotation
- Create config (copy
conf/config.json.exmaple
toconf/config.json
) - Run one of the available commands:
create
(--upload
available here),restore
,rotate
Example:
python xtrabackup-assistant/main.py create --upload