mysql - how can I create incremental backups with xtrabackup automatically -


it says on manual if want create incremental backup can following command:

xtrabackup --backup --target-dir=/data/backups/inc1 \ --incremental-basedir=/data/backups/base --datadir=/var/lib/mysql/ 

where /data/backups/inc1 incremental directory. if want create cronjob (which don't think i'm one), have figure out way name directory every time want create new incremental backup, tedious.

is there way maje xtrabackup create directories using timestamps instead?

you can use built-in linux command date name directory want, example

xtrabackup --backup --target-dir=/data/backups/inc`date +%y%m%d` (rest options) 

Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -