Update pibackup.sh

This commit is contained in:
2022-09-03 17:42:46 -05:00
parent 9d1fc55fac
commit 310b2f33b1

View File

@@ -7,6 +7,7 @@ source /opt/idssys/pibackup/settings.inc
BackupDir="${MountPoint}/${hostname}" BackupDir="${MountPoint}/${hostname}"
logfile=/opt/idssys/pibackup/logfile logfile=/opt/idssys/pibackup/logfile
if [ "$1" != "update" ]; then
echo echo
echo '-----------------------------------------------------------------------' echo '-----------------------------------------------------------------------'
date date
@@ -39,6 +40,7 @@ for i in $allfiles; do keep=0;
done; done;
if [ $keep == 0 ]; then rm -rf ${BackupDir}/$i; fi; if [ $keep == 0 ]; then rm -rf ${BackupDir}/$i; fi;
done done
fi
exit 0 exit 0