Current location

narf Source control manager Git

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshtrom <shtrom@1991c358-8f32-0410-a49a-990740bdf4c2>2011-04-11 07:08:58 +0000
committershtrom <shtrom@1991c358-8f32-0410-a49a-990740bdf4c2>2011-04-11 07:08:58 +0000
commit6a10b4fdfaa00fbafb6e69b01d1ff360758f3e7d (patch)
treedae2a482aba87f44169e3fafb7a29a0033d56d04 /openbsd
parentf98e2076cdd55a97961020ac9532a95ec7bc3793 (diff)
[OpenBSD-scripts] s/The //
git-svn-id: svn+ssh://scm.narf.ssji.net/svn/shtrom/scripts@958 1991c358-8f32-0410-a49a-990740bdf4c2
Diffstat (limited to 'openbsd')
-rwxr-xr-xopenbsd/backup.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/openbsd/backup.sh b/openbsd/backup.sh
index d4c2a1c..1e9f22e 100755
--- a/openbsd/backup.sh
+++ b/openbsd/backup.sh
@@ -5,6 +5,7 @@ BACKUPROOT="/srv/rdiff-backup"
BACKUPDIR="${BACKUPROOT}/`hostname -s`"
BACKUPSERVER=backup.narf.ssji.net
REMOTEBACKUPDIR="`hostname -s`@${BACKUPSERVER}::${BACKUPDIR}"
+EXCLUDEALWAYS="--exclude /srv/backup/ --exclude /srv/www/sites/offlines.fr/private/ --exclude /srv/www/sites/offlines.fr/www-svn/"
if [ "$1" = "remote" ]; then
EFFECTIVEBACKUPDIR=${REMOTEBACKUPDIR}
@@ -18,9 +19,9 @@ echo -n "Backing up to ${EFFECTIVEBACKUPDIR}:"
for DIR in $DIRS; do
echo -n " $DIR"
if [ "`dirname $BACKUPROOT`" = "$DIR" ]; then
- EXCL="--exclude $BACKUPROOT"
+ EXCL="${EXCLUDEALWAYS} --exclude $BACKUPROOT"
else
- EXCL=""
+ EXCL="${EXCLUDEALWAYS}"
fi
/usr/local/bin/rdiff-backup --create-full-path ${REMOTESCHEMA:+--remote-schema "${REMOTESCHEMA}"} $EXCL $DIR $EFFECTIVEBACKUPDIR$DIR
done