Skip to content

Latest commit

 

History

History
87 lines (78 loc) · 2.84 KB

rsnapshot.org

File metadata and controls

87 lines (78 loc) · 2.84 KB

rsnapshot

A filesystem snapshot utility based on rsync

Configuration file

Configuration file requires tabs between elements!

Config file version

config_version	1.2

All snapshots will be stored under root directory defined by the script:

include_conf	`/home/<<username>>/.config/rsnapshot/set_snapshot_root.sh`

If set to 1, rsnapshot won’t create snapshot_root directory

no_create_root	1

External program dependencies:

cmd_cp	/usr/bin/cp
cmd_rm	/usr/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

Backup levels: Must be unique and in ascending order e.g. alpha, beta, gamma, etc.

retain	alpha	5

Show equivalent shell commands being executed

verbose	3

If you enable this, data will be written to the file you specify. The amount of data written is controlled by the “loglevel” parameter.

logfile	/home/<<username>>/.rsnapshot.log

If enabled, rsnapshot will write a lockfile to prevent two instances from running simultaneously (and messing up the snapshot_root). If you enable this, make sure the lockfile directory is not world writable. Otherwise anyone can prevent the program from running.

lockfile	/home/<<username>>/.rsnapshot.pid

Backup points

Following folders will be backed up:

backup	/home/<<username>>/Documents/	personal-laptop/
backup	/home/<<username>>/Projects/	personal-laptop/
backup	/home/<<username>>/.config/	personal-laptop/
backup	/home/<<username>>/.dotfiles/	personal-laptop/
backup	/home/<<username>>/.fillets-ng/	personal-laptop/
backup	/home/<<username>>/.gnupg/	personal-laptop/
backup	/home/<<username>>/.hedgewars/	personal-laptop/
backup	/home/<<username>>/.local/share/wesnoth/	personal-laptop/
backup	/home/<<username>>/.mail/	personal-laptop/
backup	/home/<<username>>/.mozilla/firefox/default	personal-laptop/
backup	/home/<<username>>/.password-store/	personal-laptop/

Script

This script outputs location which will be used for the backup.

This is required when someone wants to backup to multiple locations.

printf "snapshot_root\t%s" "$RSNAPSHOT_ROOT"