diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 9f13c9fd..f4f35049 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -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