.rub

rsync + hardlinking handler

feedback: rhatto at riseup.net | gpl
lot of enhancements grabbed from "rsnap" handler by paulv at bikkel.org

Config file options

[general]
#log = rsync log file
#partition = partition where the backup lives
#fscheck = set to 1 if fsck should run on $partition after the backup is made
#read_only = set to 1 if $partition is mounted read-only
#mountpoint = backup partition mountpoint or backup main folder
#backupdir = folder relative do $mountpoint where the backup should be stored
#days = number of backup increments (min = 5)
#lockfile = lockfile to be kept during backup execution
#enable_mv_timestamp_bug = set to "yes" if your system isnt handling timestamps correctly
#tmp = temp folder

[source]
# from = local or remote
# testconnect = when "yes", test the connection for a remote source before backup
# include = include folder on backup
# exclude = exclude folder on backup
# ssh = ssh command line (remote only)
# rsync = rsync program
# rsync_options = rsync command options
# exclude_vserver = vserver-name (valid only if vservers = yes on backupninja.conf)
# numericids = when set to 1, use numeric ids instead of user/group mappings on rsync
# compress = if set to 1, compress data on rsync (remote source only)
# bandwidthlimit = set a badnwidth limit in kbps (remote source only)
# remote_rsync = remove rsync program (remote source only)

[services]
# initscripts = absolute path where scripts are located
# service = script name to be stoped at the begining of the backup and started at its end
#


# You can also specify some system commands if you don't want the default system values:

[system]
# rm = rm command
# cp = cp command
# touch = touch command
# mv = mv command
# fsck = fsck command

You dont need to manually specify vservers using "include = /vservers". They are automatically backuped if vserver is set to "yes" on you backupninja.conf.