Current location

narf Source control manager Git

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshtrom <shtrom@1991c358-8f32-0410-a49a-990740bdf4c2>2008-08-12 03:39:29 +0000
committershtrom <shtrom@1991c358-8f32-0410-a49a-990740bdf4c2>2008-08-12 03:39:29 +0000
commitc6d28b2661fddeb8ef97053b20d36c839ed452f9 (patch)
tree5dce5169e0b701a5427d9576bab80b406634f41c /openbsd
parent07198829af13cce83ad18b48ffce3c2154c61244 (diff)
[OpenBSD-scripts] New backup location + exclusion of the backup path.
git-svn-id: svn+ssh://scm.narf.ssji.net/svn/shtrom/scripts@395 1991c358-8f32-0410-a49a-990740bdf4c2
Diffstat (limited to 'openbsd')
-rwxr-xr-xopenbsd/backup.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd/backup.sh b/openbsd/backup.sh
index 8a6f6ed..234a644 100755
--- a/openbsd/backup.sh
+++ b/openbsd/backup.sh
@@ -1,11 +1,11 @@
#!/bin/sh
# $Id$
DIRS="/etc /srv /home/shtrom"
-BACKUPDIR="/data/backup/rdiff-backup"
+BACKUPDIR="/srv/rdiff-backup"
echo -n "Backing up to ${BACKUPDIR}:"
for DIR in $DIRS; do
echo -n " $DIR"
- /usr/local/bin/rdiff-backup $DIR $BACKUPDIR$DIR
+ /usr/local/bin/rdiff-backup --exclude $BACKUPDIR $DIR $BACKUPDIR$DIR
done
echo "."