Update nodemgmt-scripts.sh
This commit is contained in:
@@ -580,10 +580,10 @@ BACKUP_OFFSITEPFSENSE(){
|
|||||||
# scp root@10.2.1.1:/cf/conf/conf* ${newBAKFOLDER}/
|
# scp root@10.2.1.1:/cf/conf/conf* ${newBAKFOLDER}/
|
||||||
# ssh root@10.2.1.1 rm -f /cf/conf/conf_backup.tar.gz
|
# ssh root@10.2.1.1 rm -f /cf/conf/conf_backup.tar.gz
|
||||||
|
|
||||||
if [ "$(date +%u)" == "4" ]; then
|
if [ "$(date +%u)" == "1" ]; then
|
||||||
cp -r ${newBAKFOLDER} ${newBAKFOLDER/-D/-W}
|
cp -r ${newBAKFOLDER} ${newBAKFOLDER/-D/-W}
|
||||||
fi
|
fi
|
||||||
if [ "$(date +%d)" == "24" ]; then
|
if [ "$(date +%d)" == "1" ]; then
|
||||||
cp -r ${newBAKFOLDER} ${newBAKFOLDER/-D/-M}
|
cp -r ${newBAKFOLDER} ${newBAKFOLDER/-D/-M}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user