X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=examples%2Fcron_dump_to_disk%2Fbackup_rotate;h=c3dc1fa2f7d21e17b6959b3dc3293830b3b4fd32;hp=2e8eeb9c6eb0817c5475bf6e091f34cfd39fa932;hb=b35abb32560f6d36d1c37605e8f1320fd2b4df9f;hpb=9d6d171f1225d1832a44635d9c004b9e7a776b06 diff --git a/examples/cron_dump_to_disk/backup_rotate b/examples/cron_dump_to_disk/backup_rotate index 2e8eeb9..c3dc1fa 100755 --- a/examples/cron_dump_to_disk/backup_rotate +++ b/examples/cron_dump_to_disk/backup_rotate @@ -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"