# 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 exclude 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 = # If set, use the given program to compress and decompress the backup # (compressor must exist on the host to be backed up, and decompressor # must exist on the backup host). compressor can be unset; if so, # either pigz or gzip (autodetected) will be used. You can give flags # (e.g. -9) if you wish. # # Not used for nonpriv (change output-encrypted-backup instead). # The file will be called .tgz no matter what the compressor is. compressor = decompressor = gzip -d # 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