Update nodemgmt-scripts.sh
This commit is contained in:
@@ -622,7 +622,7 @@ BACKUP_OFFSITEPFSENSE(){
|
|||||||
weeklyfilestokeep=(`ls -d ${BAKFOLDER}/*-W 2> /dev/null | tail -${WeeklyBackupsToKeep}`)
|
weeklyfilestokeep=(`ls -d ${BAKFOLDER}/*-W 2> /dev/null | tail -${WeeklyBackupsToKeep}`)
|
||||||
monthlyfilestokeep=(`ls -d ${BAKFOLDER}/*-M 2> /dev/null | tail -${MonthlyBackupsToKeep}`)
|
monthlyfilestokeep=(`ls -d ${BAKFOLDER}/*-M 2> /dev/null | tail -${MonthlyBackupsToKeep}`)
|
||||||
for folder in $(ls -d ${BAKFOLDER}/*); do
|
for folder in $(ls -d ${BAKFOLDER}/*); do
|
||||||
if [ "${folder}" != "mounted" ]; then
|
if [ "${folder}" != "${BAKFOLDER}/mounted" ]; then
|
||||||
if [[ "${folder}" == *"-D"* ]]; then
|
if [[ "${folder}" == *"-D"* ]]; then
|
||||||
filestokeep=${dailyfilestokeep[@]}
|
filestokeep=${dailyfilestokeep[@]}
|
||||||
elif [[ "${folder}" == *"-W"* ]]; then
|
elif [[ "${folder}" == *"-W"* ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user