]> git.sesse.net Git - backup.sh/blob - conf/backup.config.example
52dde926a8dcf3870659f679d55d4aff3cbc9ee2
[backup.sh] / conf / backup.config.example
1 # backup.sh configuration file; follows git-config(1) syntax.
2 [defaults]
3         # Where we keep backups.
4         # Note: You cannot set this per-filesystem, only per machine.
5         storagedir = /backup
6
7         # List of exlude patterns. Relative to the script's directory!
8         # Note: You cannot set this per-filesystem, only per machine.
9         excludefile = conf/exclude
10
11         # What username to perform the backup as.
12         # Note: You cannot set this per-filesystem, only per machine.
13         username = root
14
15         # Number of full backups.
16         maxnumfull = 3
17
18         # Days between full backups.
19         daysbetweenfull = 30
20
21         # Force fixed full-backup date for a given machine or filesystem
22         # (e.g. "3" to always take backup of this machine the 3rd of the month).
23         # Leave blank to take full backups just whenever necessary.
24         fixedfullbackupday =
25
26         # Days between full backups for machines with fixed full-backup date
27         # (in case the fixed day gets missed).
28         daysbetweenfullforfixed = 32
29
30         # The file is usually stored to disk with a simple cat > $TARFILE,
31         # but in some cases, like backing up to a remote and untrusted
32         # file system, it could be useful to replace it with e.g.
33         # a GPG command line.
34         storageprogram = cat
35
36         # If set, do a non-privileged backup (ie., assume we need to call
37         # “sudo /usr/local/sbin/output-encrypted-backup” to get our backup).
38         # Otherwise, assume root privileges.
39         nonpriv =
40
41 # Config for a given host
42 [pannekake.samfundet.no]
43         maxnumfull = 2
44         username = samfundetbackup
45         nonpriv = true
46
47 # Config for a given filesystem
48 [pannekake.samfundet.no.srv.chroot]
49         maxnumfull = 1
50
51