annotate .rsnapshot/rsnapshot-tm.conf @ 251:b00e6b403896

Added airline-colour-splits and removed whitespace
author Steve Huston <huston@srhuston.net>
date Wed, 27 Mar 2024 16:31:21 -0400
parents 5ccc2cbf88f6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
224
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
1 #################################################
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
2 # rsnapshot.conf - rsnapshot configuration file #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
3 #################################################
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
4 # #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
5 # PLEASE BE AWARE OF THE FOLLOWING RULES: #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
6 # #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
7 # This file requires tabs between elements #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
8 # #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
9 # Directories require a trailing slash: #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
10 # right: /home/ #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
11 # wrong: /home #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
12 # #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
13 #################################################
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
14
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
15 #######################
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
16 # CONFIG FILE VERSION #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
17 #######################
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
18
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
19 config_version 1.2
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
20
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
21 ###########################
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
22 # SNAPSHOT ROOT DIRECTORY #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
23 ###########################
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
24
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
25 # All snapshots will be stored under this root directory.
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
26 #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
27 snapshot_root /Volumes/alph/.snapshots-tm/
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
28
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
29 # If no_create_root is enabled, rsnapshot will not automatically create the
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
30 # snapshot_root directory. This is particularly useful if you are backing
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
31 # up to removable media, such as a FireWire or USB drive.
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
32 #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
33 no_create_root 1
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
34
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
35 #################################
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
36 # EXTERNAL PROGRAM DEPENDENCIES #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
37 #################################
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
38
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
39 # LINUX USERS: Be sure to uncomment "cmd_cp". This gives you extra features.
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
40 # EVERYONE ELSE: Leave "cmd_cp" commented out for compatibility.
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
41 #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
42 # See the README file or the man page for more details.
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
43 #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
44 cmd_cp /opt/local/bin/gcp
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
45
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
46 # uncomment this to use the rm program instead of the built-in perl routine.
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
47 #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
48 cmd_rm /bin/rm
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
49
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
50 # rsync must be enabled for anything to work. This is the only command that
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
51 # must be enabled.
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
52 #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
53 cmd_rsync /opt/local/bin/rsync
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
54
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
55 # Uncomment this to enable remote ssh backups over rsync.
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
56 #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
57 cmd_ssh /usr/bin/ssh
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
58
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
59 # Comment this out to disable syslog support.
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
60 #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
61 cmd_logger /usr/bin/logger
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
62
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
63 # Uncomment this to specify the path to "du" for disk usage checks.
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
64 # If you have an older version of "du", you may also want to check the
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
65 # "du_args" parameter below.
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
66 #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
67 cmd_du /usr/bin/du
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
68
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
69 # Uncomment this to specify the path to rsnapshot-diff.
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
70 #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
71 cmd_rsnapshot_diff /opt/local/bin/rsnapshot-diff
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
72
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
73 # Specify the path to a script (and any optional arguments) to run right
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
74 # before rsnapshot syncs files
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
75 #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
76 #cmd_preexec /path/to/preexec/script
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
77
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
78 # Specify the path to a script (and any optional arguments) to run right
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
79 # after rsnapshot syncs files
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
80 #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
81 #cmd_postexec /path/to/postexec/script
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
82
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
83 #########################################
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
84 # BACKUP INTERVALS #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
85 # Must be unique and in ascending order #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
86 # i.e. hourly, daily, weekly, etc. #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
87 #########################################
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
88
230
5ccc2cbf88f6 Lowering TM backup quantity
Steve Huston <huston@astro.princeton.edu>
parents: 224
diff changeset
89 interval hourly 2
224
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
90 #interval daily 7
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
91 #interval weekly 4
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
92 #interval monthly 3
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
93
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
94 ############################################
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
95 # GLOBAL OPTIONS #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
96 # All are optional, with sensible defaults #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
97 ############################################
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
98
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
99 # Verbose level, 1 through 5.
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
100 # 1 Quiet Print fatal errors only
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
101 # 2 Default Print errors and warnings only
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
102 # 3 Verbose Show equivalent shell commands being executed
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
103 # 4 Extra Verbose Show extra verbose information
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
104 # 5 Debug mode Everything
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
105 #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
106 verbose 1
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
107
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
108 # Same as "verbose" above, but controls the amount of data sent to the
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
109 # logfile, if one is being used. The default is 3.
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
110 #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
111 loglevel 3
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
112
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
113 # If you enable this, data will be written to the file you specify. The
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
114 # amount of data written is controlled by the "loglevel" parameter.
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
115 #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
116 logfile /var/log/rsnapshot
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
117
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
118 # If enabled, rsnapshot will write a lockfile to prevent two instances
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
119 # from running simultaneously (and messing up the snapshot_root).
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
120 # If you enable this, make sure the lockfile directory is not world
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
121 # writable. Otherwise anyone can prevent the program from running.
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
122 #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
123 lockfile /var/run/rsnapshot-tm.pid
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
124
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
125 # Default rsync args. All rsync commands have at least these options set.
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
126 #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
127 #rsync_short_args -a
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
128 #rsync_long_args --delete --numeric-ids --relative --delete-excluded
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
129
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
130 # ssh has no args passed by default, but you can specify some here.
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
131 #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
132 ssh_args -i /var/root/.ssh/joshua-backup
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
133
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
134 # Default arguments for the "du" program (for disk space reporting).
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
135 # The GNU version of "du" is preferred. See the man page for more details.
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
136 # If your version of "du" doesn't support the -h flag, try -k flag instead.
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
137 #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
138 #du_args -csh
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
139
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
140 # If this is enabled, rsync won't span filesystem partitions within a
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
141 # backup point. This essentially passes the -x option to rsync.
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
142 # The default is 0 (off).
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
143 #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
144 #one_fs 0
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
145
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
146 # The include and exclude parameters, if enabled, simply get passed directly
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
147 # to rsync. If you have multiple include/exclude patterns, put each one on a
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
148 # separate line. Please look up the --include and --exclude options in the
251
b00e6b403896 Added airline-colour-splits and removed whitespace
Steve Huston <huston@srhuston.net>
parents: 230
diff changeset
149 # rsync man page for more details on how to specify file name patterns.
b00e6b403896 Added airline-colour-splits and removed whitespace
Steve Huston <huston@srhuston.net>
parents: 230
diff changeset
150 #
224
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
151 #include ???
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
152 #include ???
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
153 #exclude ???
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
154 #exclude ???
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
155
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
156 # The include_file and exclude_file parameters, if enabled, simply get
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
157 # passed directly to rsync. Please look up the --include-from and
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
158 # --exclude-from options in the rsync man page for more details.
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
159 #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
160 #include_file /path/to/include/file
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
161 #exclude_file /path/to/exclude/file
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
162
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
163 # If your version of rsync supports --link-dest, consider enable this.
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
164 # This is the best way to support special files (FIFOs, etc) cross-platform.
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
165 # The default is 0 (off).
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
166 #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
167 link_dest 1
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
168
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
169 # When sync_first is enabled, it changes the default behaviour of rsnapshot.
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
170 # Normally, when rsnapshot is called with its lowest interval
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
171 # (i.e.: "rsnapshot hourly"), it will sync files AND rotate the lowest
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
172 # intervals. With sync_first enabled, "rsnapshot sync" handles the file sync,
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
173 # and all interval calls simply rotate files. See the man page for more
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
174 # details. The default is 0 (off).
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
175 #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
176 sync_first 1
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
177
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
178 # If enabled, rsnapshot will move the oldest directory for each interval
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
179 # to [interval_name].delete, then it will remove the lockfile and delete
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
180 # that directory just before it exits. The default is 0 (off).
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
181 #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
182 #use_lazy_deletes 0
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
183
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
184 # Number of rsync re-tries. If you experience any network problems or
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
185 # network card issues that tend to cause ssh to crap-out with
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
186 # "Corrupted MAC on input" errors, for example, set this to a non-zero
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
187 # value to have the rsync operation re-tried
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
188 #
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
189 #rsync_numtries 0
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
190
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
191 ###############################
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
192 ### BACKUP POINTS / SCRIPTS ###
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
193 ###############################
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
194
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
195 # LOCALHOST
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
196 #backup /home/ localhost/
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
197 #backup /etc/ localhost/
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
198 #backup /usr/local/ localhost/
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
199 #backup /var/log/rsnapshot localhost/
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
200 #backup /etc/passwd localhost/
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
201 #backup /home/foo/My Documents/ localhost/
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
202 #backup /foo/bar/ localhost/ one_fs=1, rsync_short_args=-urltvpog
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
203 #backup_script /usr/local/bin/backup_pgsql.sh localhost/postgres/
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
204
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
205 # EXAMPLE.COM
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
206 #backup_script /bin/date "+ backup of example.com started at %c" unused1
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
207 #backup root@example.com:/home/ example.com/ +rsync_long_args=--bwlimit=16,exclude=core
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
208 #backup root@example.com:/etc/ example.com/ exclude=mtab,exclude=core
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
209 #backup_script ssh root@example.com "mysqldump -A > /var/db/dump/mysql.sql" unused2
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
210 #backup root@example.com:/var/db/dump/ example.com/
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
211 #backup_script /bin/date "+ backup of example.com ended at %c" unused9
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
212
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
213 # CVS.SOURCEFORGE.NET
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
214 #backup_script /usr/local/bin/backup_rsnapshot_cvsroot.sh rsnapshot.cvs.sourceforge.net/
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
215
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
216 # RSYNC.SAMBA.ORG
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
217 #backup rsync://rsync.samba.org/rsyncftp/ rsync.samba.org/rsyncftp/
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
218
06c95aa30a30 Add configs to version control, change path in script to point to them
Steve Huston <huston@astro.princeton.edu>
parents:
diff changeset
219 backup root@joshua.srhuston.net:/home/Backups/ joshua/ +rsync_long_args=--bwlimit=8192