fix for do_backup()
This commit is contained in:
1 parent
22d9442b42
commit
050c3ccd9e
8 files changed
+38
-53
No files matched your search
@@ -42,6 +42,8 @@ else
|
||||
exit 2
|
||||
fi
|
||||
|
||||
LOG_FILE="$NAS_ROOT/log/$LOG_FILE-$(date '+%Y-%m-%d_%H%M').log"
|
||||
|
||||
file=
|
||||
archive=
|
||||
|
||||
@@ -52,10 +54,12 @@ while :; do
|
||||
exit 0
|
||||
;;
|
||||
-d|--daily)
|
||||
LOG_FILE=$BACKUP_TARGET/backup.log
|
||||
backup_daily
|
||||
break
|
||||
;;
|
||||
-w|--weekly)
|
||||
LOG_FILE=$BACKUP_TARGET/backup.log
|
||||
backup_weekly
|
||||
break
|
||||
;;
|
||||
|
||||
Reference in new issue
Block a user