]> git.sesse.net Git - backup.sh/blobdiff - conf/backup.config.example
Move from configuration in various scattered single files to everything (except exclu...
[backup.sh] / conf / backup.config.example
diff --git a/conf/backup.config.example b/conf/backup.config.example
new file mode 100644 (file)
index 0000000..52dde92
--- /dev/null
@@ -0,0 +1,51 @@
+# backup.sh configuration file; follows git-config(1) syntax.
+[defaults]
+       # Where we keep backups.
+       # Note: You cannot set this per-filesystem, only per machine.
+       storagedir = /backup
+
+       # List of exlude patterns. Relative to the script's directory!
+       # Note: You cannot set this per-filesystem, only per machine.
+       excludefile = conf/exclude
+
+       # What username to perform the backup as.
+       # Note: You cannot set this per-filesystem, only per machine.
+       username = root
+
+       # Number of full backups.
+       maxnumfull = 3
+
+       # Days between full backups.
+       daysbetweenfull = 30
+
+       # Force fixed full-backup date for a given machine or filesystem
+       # (e.g. "3" to always take backup of this machine the 3rd of the month).
+       # Leave blank to take full backups just whenever necessary.
+       fixedfullbackupday =
+
+       # Days between full backups for machines with fixed full-backup date
+       # (in case the fixed day gets missed).
+       daysbetweenfullforfixed = 32
+
+       # The file is usually stored to disk with a simple cat > $TARFILE,
+       # but in some cases, like backing up to a remote and untrusted
+       # file system, it could be useful to replace it with e.g.
+       # a GPG command line.
+       storageprogram = cat
+
+       # If set, do a non-privileged backup (ie., assume we need to call
+       # “sudo /usr/local/sbin/output-encrypted-backup” to get our backup).
+       # Otherwise, assume root privileges.
+       nonpriv =
+
+# Config for a given host
+[pannekake.samfundet.no]
+       maxnumfull = 2
+       username = samfundetbackup
+       nonpriv = true
+
+# Config for a given filesystem
+[pannekake.samfundet.no.srv.chroot]
+       maxnumfull = 1
+
+