Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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/
exclude /sys
exclude /proc
exclude /tmp
exclude /var/tmp
#backup_script /usr/bin/ssh '/root/rsnapshot.mysql' unused1/
backup_script /usr/bin/ssh 'mysqldump -uroot -ppassword --all-databases --single-transaction | gzip --rsyncable' > all.sql.gz mysql/
backup files/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment