File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 33# URL: https://github.com/zevilz/WebServerCloudBackups
44# Author: zEvilz
55# License: MIT
6- # Version: 1.9.2
6+ # Version: 1.10.0
77
88checkFilePermissions ()
99{
@@ -64,7 +64,7 @@ if [[ $# -lt 2 ]]; then
6464$SETCOLOR_FAILURE
6565echo " Wrong number of parameters!"
6666$SETCOLOR_NORMAL
67- echo " Usage: bash $0 files|bases hourly|daily|weekly|monthly 0|1|3|5|7|9(optional) webdav|s3|ssh(optional)"
67+ echo " Usage: bash $0 files|bases hourly|daily|daily_week|daily_month| weekly|monthly 0|1|3|5|7|9(optional) webdav|s3|ssh(optional)"
6868
6969exit 1
7070fi
@@ -80,13 +80,13 @@ if [[ $1 != "files" && $1 != "bases" ]]; then
8080exit 1
8181fi
8282
83- if [[ $2 != " hourly" && $2 != " daily" && $2 != " weekly" && $2 != " monthly" ]]; then
83+ if [[ $2 != " hourly" && $2 != " daily" && $2 != " daily_week " && $2 != " daily_month " && $2 != " weekly" && $2 != " monthly" ]]; then
8484pushToLog " [ERROR] - Wrong period set"
8585
8686$SETCOLOR_FAILURE
8787echo " Wrong period set!"
8888$SETCOLOR_NORMAL
89- echo " Period must be set to \" hourly\" or \" daily\" or \" weekly\" or \" monthly\" "
89+ echo " Period must be set to \" hourly\" or \" daily\" or \" daily_week \" or \" daily_month \" or \" weekly\" or \" monthly\" "
9090
9191exit 1
9292fi
143143# period time postfix
144144if [[ $2 == " hourly" ]]; then
145145PERIOD=" $2 " _$( date +" %H" )
146- elif [[ $2 == " daily" ]]; then
146+ elif [[ $2 == " daily" || $2 == " daily_week " ]]; then
147147PERIOD=$( date +" %u" ) _$( date +" %A" )
148+ elif [[ $2 == " daily_month" ]]; then
149+ PERIOD=" $2 " _$( date +" %d" )
148150else
149151PERIOD=" $2 "
150152fi
You can’t perform that action at this time.
0 commit comments