fixed rm command, edit days of keeped backup

-> rm command: {} contains already the full path for deletion
-> days to keep: local nas script delets files which are older than 30
days.. cause of this rsync keeps syncing old files everyday
This commit is contained in:
rick
2019-12-18 22:28:36 +01:00
parent 0bc301b5ad
commit 8183b65f53

View File

@@ -27,8 +27,8 @@ do
${lxccmd} delete ${container}-backup ${lxccmd} delete ${container}-backup
done done
#housekeeping - keep last 38 days #housekeeping - keep last 28 days
find ${backuppath} -mtime +38 -exec rm -f ${backuppath}/{} \; find ${backuppath} -mtime +28 -exec rm -f {} \;
#own data for backupuser #own data for backupuser
chown -R ${backupuser}:${backupuser} ${backuppath} chown -R ${backupuser}:${backupuser} ${backuppath}