Current location

narf Source control manager Git

summaryrefslogtreecommitdiff
blob: 7212c0e06663683986276a08a675cdc4ee40d300 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
BACKUPCLEANUPHORIZON="${1:-6M}"

# The following variables can be overridden in /etc/backup.sh.conf
DIRS="/etc /srv"
TMPSUBDIR=/tmp

BACKUPROOT="/srv/rdiff-backup"
BACKUPDIR="${BACKUPROOT}/`hostname -s`"
BACKUPSERVER=backup.example.net
EXCLUDEALWAYS="${BACKUPROOT}"

test -e /etc/backup.sh.conf && . /etc/backup.sh.conf

for dir in ${DIRS}; do
	rdiff-backup -v 6 --remove-older-than ${BACKUPCLEANUPHORIZON}  --force ${BACKUPDIR}$dir
done