Created
December 10, 2013 22:24
-
-
Save spikeheap/7901408 to your computer and use it in GitHub Desktop.
Sample rsnapshot config, from http://www.ryanbrooks.co.uk/blog/2013/08/22/simple-rsnapshot-backup-over-ftps/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################# | |
# rsnapshot.conf - rsnapshot configuration file # | |
################################################# | |
# # | |
# PLEASE BE AWARE OF THE FOLLOWING RULES: # | |
# # | |
# This file requires tabs between elements # | |
# # | |
# Directories require a trailing slash: # | |
# right: /home/ # | |
# wrong: /home # | |
# # | |
################################################# | |
config_version 1.2 | |
snapshot_root /var/rsnapshot/private/snapshots | |
no_create_root 1 | |
cmd_cp /bin/cp | |
cmd_rm /bin/rm | |
cmd_rsync /usr/bin/rsync | |
#cmd_ssh /usr/bin/ssh | |
cmd_logger /usr/bin/logger | |
cmd_du /usr/bin/du | |
cmd_rsnapshot_diff /usr/bin/rsnapshot-diff | |
# Specify the path to a script (and any optional arguments) to run right | |
# before rsnapshot syncs files | |
# | |
#cmd_preexec /path/to/preexec/script | |
# Specify the path to a script (and any optional arguments) to run right | |
# after rsnapshot syncs files | |
# | |
#cmd_postexec /path/to/postexec/script | |
######################################### | |
# BACKUP INTERVALS # | |
# Must be unique and in ascending order # | |
# i.e. hourly, daily, weekly, etc. # | |
######################################### | |
retain hourly 24 | |
retain daily 7 | |
retain weekly 4 | |
retain monthly 60 | |
verbose 2 | |
loglevel 3 | |
logfile /var/log/rsnapshot.log | |
lockfile /var/run/rsnapshot/rsnapshot.pid | |
stop_on_stale_lockfile 0 | |
link_dest 1 | |
sync_first 1 | |
############################### | |
### BACKUP POINTS / SCRIPTS ### | |
############################### | |
# LOCALHOST | |
#backup /home/ localhost/ | |
#backup /etc/ localhost/ | |
# Remote SFTP site | |
backup /media/remote_server remote_server/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment