This is an old revision of the document!
Rsnapshot
rsnapshot.conf
rsnapshot.conf example
config_version 1.2 snapshot_root /home/.snapshots/ 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 interval monthly 3 verbose 2 loglevel 3 logfile /var/log/rsnapshot lockfile /var/run/rsnapshot.pid one_fs 1 # useful for WAN connections rsync_long_args --timeout=1200 --delete --numeric-ids --relative --delete-excluded rsync_numtries 4 ############################### ### EXCLUDES ### ############################### # Common excludes exclude ~* exclude *~ exclude .big* exclude cache*/ exclude *credentials* exclude .cache* exclude .ccache* exclude Down*/ exclude download*/ exclude debug.txt exclude e4rat-* exclude Загруз*/ exclude *backup* exclude bkp* exclude *.bkp* exclude .bash exclude .com.* exclude .gem exclude .git* exclude .hg* exclude .icedove exclude *.iso exclude .local* exclude log exclude *.log exclude *.log.* exclude lost+found exclude .mozilla* exclude .my.cnf* exclude .netrc* exclude .nevernote* exclude .nv* exclude .opera* exclude .PlayOnLinux* exclude .purple* exclude .rvm exclude signons.sqlite exclude .snapshot* exclude .ssh* exclude .texlive* exclude tmp* exclude *.tmp exclude .tmp* exclude .tmp.* exclude temp* exclude *.temp exclude .temp* exclude .temp.* exclude .Thumb* exclude Thumbnail* exclude .thumb* exclude .thunderbird* exclude *.vdi exclude *.vim exclude .wine* exclude .zsh # Specific path excludes exclude /home/pub* exclude /home/share* exclude /usr/opt/0ad* exclude /usr/opt/android-sdk* exclude /usr/opt/cuda* exclude /usr/opt/doom3* exclude /usr/opt/googleearth* exclude /usr/opt/natinst exclude /usr/portage exclude /usr/share/games exclude /usr/src/linux-* exclude /var/lib/clamav exclude /var/lib/layman exclude /var/lib/libvirt/images exclude /var/lib/libvirt/qemu/save exclude /var/portage exclude /var/spool/cups ############################### ### BACKUP POINTS / SCRIPTS ### ############################### # LOCALHOST backup / localhost/ backup /home/ localhost/ +rsync_long_args=--exclude=/home/user1000/scm_backuped_projects backup /boot/ localhost/ backup /usr/ localhost/ backup /var/ localhost/ +rsync_long_args=--exclude=/var/lib/*locate # SOME.HOST.RU backup root@some.host.ru:/ some.host.ru/ +rsync_long_args= --exclude=/bad_dir --exclude=/var/srv/path/to/generated/docs --exclude=/usr/share/doc --exclude=/var/srv/rhodecode/repos --exclude=/var/srv/gitorious/tarballs --exclude=/var/srv/webvirtmgr/images backup root@some.host.ru:/var/srv/rhodecode/repos/ some.host.ru/ exclude=rm_*/ backup root@some.host.ru:/mnt/path/to/share some.host.ru/ +rsync_long_args= --include=*/ --include=/mnt/path/to/share/Directory1/** --include=/mnt/path/to/share/Directory2/** --exclude=* --prune-empty-dirs # Combination of port and excludes backup root@some.host.ru:/var/ some.host.ru/ +ssh_args=-p2222,+rsync_long_args= --exclude=/var/lib/*locate --exclude=/var/www