backupninja/examples/example.rsync

233 lines
5.8 KiB
Plaintext
Raw Normal View History

#
# rsync handler example file
#
# Mandatory options are uncommented with sugested values
# Other options are commented out with their default values
#
[general]
# rsync log file
#log = /var/log/backup/rsync.log
# partition device where the backup lives
# just use this option if your data is backed up in a separate partition and
# you want backupninja to fsck it; this option will just be used if fscheck
# (see below) is set to 'yes'
2021-01-22 17:24:14 +01:00
#partition =
2011-12-31 17:40:37 +01:00
# set to 1 if fsck should run on partition after the backup is made
2021-01-22 17:24:14 +01:00
#fscheck =
2011-12-31 17:40:37 +01:00
# set to 1 if partition is mounted read-only
2021-01-22 17:24:14 +01:00
#read_only =
2011-12-31 17:40:37 +01:00
# backup partition mountpoint or backup main folder
# this doesn't need to be a real partition, but should be at least the
# main folder where the backup is being stored
mountpoint = /mnt/backup
# folder relative do mountpoint where the backup should be stored
backupdir = myserver
2011-12-31 17:40:37 +01:00
# temp folder
#tmp = /tmp
# specify backup storage format: short, long or mirror (i.e, no rotations)
#
# In the short format, incremental backups are rotated every day the handler
# runs an by a finite number of times (backup.0, backup.1, backup.1, etc), so
# if you want to have incremental backups for longer periods (like months) you
# have to configure rotations for 30 or more using the "days" parameter at the
# [general] section in the handler config.
2021-01-22 17:24:14 +01:00
#
# The short format is better described here:
# http://www.mikerubel.org/computers/rsync_snapshots/#Incremental
2021-01-22 17:24:14 +01:00
#
# The long format is inspired by the maildir handler and allows keeping backups
# of longer periods (weeks and months) using less rotations as it stores
# the increments in folders like daily.1, weekly.1, monthly.1 and has three
# rotation parameters:
2021-01-22 17:24:14 +01:00
#
# keepdaily = number of daily backup increments
# keepweekly = number of weekly backup increments
# keepmonthly = number of monthly backup increments
#
2011-12-31 17:40:37 +01:00
format = short
2011-12-31 17:40:37 +01:00
# for short storage format, specify the number of backup increments (min = 2, set to 1 or less to disable)
#
# Note that setting days = 0 is almost the same as using format = mirror except
# that with the days config your backup gets a .0 suffix at the destination
# folder, making it easier to turn it later to an incremental backup.
#
2011-12-31 17:40:37 +01:00
days = 7
2011-12-31 17:40:37 +01:00
# for long storage format, specify the number of daily backup increments
#keepdaily = 7
# for long storage format, specify the number of weekly backup increments
#keepweekly = 3
# for long storage format, specify the number of monthly backup increments
#keepmonthly = 1
# rsync command nice level
#nicelevel = 0
## ionicelevel is optional. If it is left undefined or empty, ionice will not
## be used at all. If it is set to to an integer value from 0 to 7, then ionice
## will be used with the best effort class (-c2) and with the ionicelevel as
## the class data (-n).
##
## See the ionice(1) man page for more details about available levels.
##
## Default:
# ionicelevel =
# set to "yes" if your system isnt handling timestamps correctly
#enable_mv_timestamp_bug = no
# temp folder
#tmp = /tmp
2011-12-31 17:40:37 +01:00
# set to "yes" if you want to use multiconnection ssh support
#multiconnection = no
[source]
# where the data to be backed up is (local or remote)
#from = local
2007-12-02 17:56:32 +01:00
# if remote source, specify the hostname or IP
#host =
2011-12-31 17:40:37 +01:00
# remote port number (remote source only)
#port = 22
# remote user name (remote source only)
user = remoteuser
2011-12-31 17:40:37 +01:00
# when "yes", test the connection for a remote source before backup
#testconnect = no
# include folder on backup
include = /etc
include = /var
# exclude folder on backup
exclude = exclude_folder1
exclude = exclude_folder2
2011-12-31 17:40:37 +01:00
# ssh or rsync (remote source only)
#protocol = ssh
# rsync program
# it defaults to $RSYNC value from backupninja.conf
#rsync = $RSYNC
# rsync command options
#rsync_options = -av --delete --recursive
# when set to 1, use numeric ids instead of user/group mappings on rsync
2011-12-31 17:40:37 +01:00
#numericids =
# if set to 1, compress data on rsync (remote source only)
#compress = 0
2012-02-25 14:01:49 +01:00
# set a bandwidth limit in KB/s (remote source only)
#bandwidthlimit =
# remote rsync program (remote source only)
#remote_rsync = rsync
2011-12-31 17:40:37 +01:00
# ssh key file (remote source only)
#id_file = /root/.ssh/id_rsa
2011-12-31 17:40:37 +01:00
# set to "yes" to rsync use a batch file as source
#batch = no
# folder where the batch file is located
#batchbase =
# set yes if you want rsync to use a file list source
#filelist = no
# folder where the file list is placed
#filelistbase =
[dest]
# backup destination type (local or remote)
#dest = local
# when "yes", test the connection for a remote source before backup
#testconnect = no
# ssh or rsync (remote dest only)
#protocol = ssh
# when set to 1, use numeric ids instead of user/group mappings on rsync
#numericids =
# if set to 1, compress data on rsync (remote source only)
#compress = 0
# destination host name (remote destination only)
#host =
# remote port number (remote destination only)
#port = 22
# remote user name (remote destination only)
#user =
# ssh key file (remote destination only)
#id_file = /root/.ssh/id_rsa
2011-12-31 17:40:37 +01:00
2012-02-25 14:01:49 +01:00
# set a bandwidth limit in KB/s (remote destination only)
#bandwidthlimit =
2011-12-31 17:40:37 +01:00
# remote rsync program (remote dest only)
#remote_rsync = rsync
# set to "yes" to rsync write a batch file from the changes
#batch = no
# folder where the batch file should be written
#batchbase = /var/backups/rsync/batches
# set to yes so rsync use the --fake-super flag (remote destination only)
#fakesuper = yes
# This section is used to stop and start services that should be turned of
# during the backup procedure.
#
#[services]
#
# absolute path where scripts are located
2011-12-31 17:40:37 +01:00
#initscripts = /etc/init.d
#
# script name to be stoped at the begining of the backup and started at its end
#service =
# You can also specify some system comands if you don't want the default system values
# by enabling the section below.
#
#[system]
#
# rm command
#rm = rm
#
# cp command
#cp = cp
#
# touch command
#touch = touch
#
# mv command
#mv = mv
#
# fsck command
#fsck = fsck