Create a gist now

Instantly share code, notes, and snippets.

Rsnapshot configuration file
config_version 1.2
snapshot_root /var/backups/
cmd_cp /bin/cp
cmd_rm /bin/rm
cmd_rsync /usr/bin/rsync
cmd_ssh /usr/bin/ssh
cmd_logger /usr/bin/logger
interval daily 7
interval weekly 4
verbose 2
loglevel 3
logfile /var/log/rsnapshot.log
lockfile /var/run/rsnapshot.pid
exclude /sys
exclude /proc
exclude /tmp
exclude /var/tmp
#backup_script /usr/bin/ssh root@domain.com '/root/rsnapshot.mysql' unused1/
backup_script /usr/bin/ssh root@domain.com 'mysqldump -uroot -ppassword --all-databases --single-transaction | gzip --rsyncable' > all.sql.gz mysql/
#FILES
backup root@domain.com:/ files/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment