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