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:
@@ -27,8 +27,8 @@ do
|
||||
${lxccmd} delete ${container}-backup
|
||||
done
|
||||
|
||||
#housekeeping - keep last 38 days
|
||||
find ${backuppath} -mtime +38 -exec rm -f ${backuppath}/{} \;
|
||||
#housekeeping - keep last 28 days
|
||||
find ${backuppath} -mtime +28 -exec rm -f {} \;
|
||||
|
||||
#own data for backupuser
|
||||
chown -R ${backupuser}:${backupuser} ${backuppath}
|
||||
|
||||
Reference in New Issue
Block a user