-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.example
84 lines (67 loc) · 3.08 KB
/
config.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Example configuration file for backing up a client using rrb.
# Will be interpreted as a shell script. Comments start with #.
# Use KEY=VALUE to assign a value to the key. No spaces around the =.
#
# -----------------------------------------------------------------------------
# Obligatory options
# -----------------------------------------------------------------------------
# The root of the files to be backuped. Can be on a remote host or localhost.
# Will be interpreted by rsync.
# To backup a local directory (and create an additional directory level at the
# destination):
#SRC=/etc
# In order not to create an additional directory level at the destination add a
# trailing slash:
#SRC=/etc/
# Remote access via remote shell. Note that you don't need to add a trailing
# slash. Spaces in remote sources have to be escaped, so the remote shell can
# interpret them. My tip: Don't use spaces at all:
#SRC=example:'file\ name\ with\ spaces'
# Remote access via rsync daemon. No need to add a trailing slash on remote
# connections:
#SRC=example::module
# The destination directory to put the backups in:
#DEST_DIR=/backup/example
# -----------------------------------------------------------------------------
# Optional options
# -----------------------------------------------------------------------------
# The path of a file that specifies the excludes. New line for every file to be
# excluded. (Directories are files, too.) See man 1 rsync for more detail on
# the layout of the file.
#EXCLUDES_FILE=/etc/rrb/excludes.example
# Same with spaces:
#EXCLUDES_FILE="/path with spaces/excludes.example"
# A command that will be executed before running the backup. Can be used to
# mount a filesystem.
#BEFORE_CMD="echo 'before'"
# A command that will be executed after running the backup. Also if the backup
# failed. Can be used to mount a filesystem that has been mounted before. Note
# that you can't use variables to find out whether the filesystem was mounted
# before BEFORE_CMD.
#AFTER_CMD="echo 'after'"
# Will only be executed if the backup failed. Might be handy to notify the
# admin.
#FAIL_CMD="echo 'fail'"
# Will only be executed if the backup succeeded.
#SUCCESS_CMD="echo 'success'"
# Set additional rsync options. In this example we want to preserves hard
# links. Preserving hard links is very expensive, and we don't want to hinder
# the users of the client too much, so we set the niceness of the remote rsync
# to a high value.
#RSYNC_OPTS=( --hard-links --rsync-path='nice -n19 rsync' )
# Specify a remote shell for rsync. There are more rsync-related options, see
# man 1 rsync.
#RSYNC_RSH=ssh
# -----------------------------------------------------------------------------
# Options for rrb-cleanup
# -----------------------------------------------------------------------------
# Number of days to keep the backups and number of backups to keep in this
# interval. One rule per line. Backups recognized by earlier lines are excluded
# from following lines. Therefore you usually want to write the number of days
# in ascending order.
#KEEP_RULES=( \
# 7 7 \
# 31 8 \
# 365 11 \
#1825 4 \
#)