# it is backup tabouret - very simple and so reliable backup script. # for now it is used to backup whole rootfs (by default, but you can change dir in config-file) via incremental tar-archive # and uses mysqldump to dump all databases (if not set ${database_list} in config-file). # it can backup all locally and remotely via ssh+cat on remote side. # to install/upgrade this script use something like: # wget -O /usr/bin/yabackup.sh https://debian.pro/files/backup.sh/yabackup.sh; chmod +x /usr/bin/yabackup.sh # configuration examples and cron.d examples also placed at https://debian.pro/files/backup-sh/ # for now script takes 2 options: # - $1 - path to configutation file (uses /etc/backup/backup.conf if it exists and $1 is empty) # - environment variable ${TODO} - can be either "rootfs", "mysqldump", "clean". If empty - scripts does everything. # examples: # To make everything with custom config # /usr/bin/backup.sh /etc/backup/backup-custom.conf # To make only mysqldumps with custom config: # TODO="mysqldump" /usr/bin/backup.sh /etc/backup/backup-custom.conf # To make only tar-archive with custom config: # TODO="rootfs" /usr/bin/backup.sh /etc/backup/backup-custom.conf # To make cleanup of old backup files only (with custom config): # TODO="clean" /usr/bin/backup.sh /etc/backup/backup-custom.conf # Don't forget about flock! # feel free to contact mailto:root@vlad.pro or xmpp:root@vlad.pro with your ideas here. # feel free to fork this and do everything you want.