]> git.wh0rd.org - dump.git/blobdiff - examples/cron_dump_to_disk/backup_rotate
Improvements to cron_dump_to_disk
[dump.git] / examples / cron_dump_to_disk / backup_rotate
index 2e8eeb9c6eb0817c5475bf6e091f34cfd39fa932..c3dc1fa2f7d21e17b6959b3dc3293830b3b4fd32 100755 (executable)
@@ -3,7 +3,7 @@
 # This script will redirect the backup directory to implement desired backup
 # schedules.
 #
-# Currently we will use just a seven day format were we just move a link
+# We will use just a seven day format where we just move a link
 # that represents the backup directory, to point to the day of the week.
 #
 
@@ -17,8 +17,8 @@ else
    REALDIR=`date +%A`
 fi
 
-BACKUPPART="/backup"
-BACKUPDIR="current"
+BACKUPPART=${BACKUPPART:-"/backup"}
+BACKUPDIR=${BACKUPDIR:-"current"}
 
 echo "### Start of Backup Rotation ###"
 echo "Using backup partition: $BACKUPPART"