Update nodemgmt-scripts.sh
This commit is contained in:
@@ -581,9 +581,9 @@ BACKUP_OFFSITEPFSENSE(){
|
||||
ssh root@10.2.1.1 rm -f /cf/conf/conf_backup.tar.gz
|
||||
|
||||
if [ "$(date +%u)" == "4" ]; then
|
||||
cp ${newBAKFOLDER} ${newBAKFOLDER/-D/-W}
|
||||
cp -r ${newBAKFOLDER} ${newBAKFOLDER/-D/-W}
|
||||
elif [ "$(date +%d)" == "24" ]; then
|
||||
cp ${newBAKFOLDER} ${newBAKFOLDER/-D/-M}
|
||||
cp -r ${newBAKFOLDER} ${newBAKFOLDER/-D/-M}
|
||||
fi
|
||||
|
||||
dailyfilestokeep=(`ls -d ${BAKFOLDER}/*-D | tail -2`) >/dev/null 2>&1
|
||||
|
||||
Reference in New Issue
Block a user