This repository has been archived by the owner on Aug 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.conf
79 lines (69 loc) · 1.62 KB
/
example.conf
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
DiffDir /usr/local/s3napback/diffs
TempDir /tmp
Bucket dev.davidsoergel.com.backup1
GpgRecipient backup@davidsoergel.com
S3Keyfile /usr/local/s3napback/key.txt
ChunkSize 25000000
# See s3napback.logconfig to configure logging (including log rotation, emailing, etc.)
# make diffs of these every day, store fulls once a week, and keep two weeks
<Cycle dailies>
Frequency 1
Phase 0
Diffs 7
Fulls 2
Directory /etc
Directory /home/build
Directory /home/notebook
Directory /home/s3backup
Directory /home/trac
Directory /usr
Directory /var
</Cycle>
# make diffs of these every week, store fulls once a month, and keep two months
<Cycle weeklies>
Frequency 7
Phase 0
Diffs 4
Fulls 2
Directory /bin
Directory /boot
Directory /lib
Directory /lib64
Directory /opt
Directory /root
Directory /sbin
</Cycle>
# make a diff of this every day, store fulls once a week, and keep eight weeks
<Directory /home/foobar>
Frequency 1
Phase 0
Diffs 7
Fulls 8
</Directory>
# store a MySQL dump of all databases every day, keeping 14. Dump to a local file first, then stream that to S3.
<MySQL all>
Frequency 1
Phase 0
Fulls 14
UseTempFile 1
</MySQL>
# store a MySQL dump of a specific database every day, keeping 14.
<MySQL mydatabase>
Frequency 1
Phase 0
Fulls 14
</MySQL>
# store a full dump of all Subversion repos every day, keeping 10.
<SubversionDir /home/svn/repos>
Frequency 1
Phase 0
Diffs 0
Fulls 10
</SubversionDir>
# store a diff of a specific Subversion repo every day, with a full dump every fourth day, keeping 10 fulls.
<Subversion /home/svn/repos/myproject>
Frequency 1
Phase 0
Diffs 3
Fulls 10
</Subversion>