X-Git-Url: https://git.sesse.net/?p=backup.sh;a=blobdiff_plain;f=conf%2Fbackup.config.example;fp=conf%2Fbackup.config.example;h=52dde926a8dcf3870659f679d55d4aff3cbc9ee2;hp=0000000000000000000000000000000000000000;hb=45af8287dfd50b7190a09fbfca033f29b98a23f7;hpb=948635d7a45badaf24b8e66c54e92073234dab23 diff --git a/conf/backup.config.example b/conf/backup.config.example new file mode 100644 index 0000000..52dde92 --- /dev/null +++ b/conf/backup.config.example @@ -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 + +