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
|
${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}
|
||||||
|
|||||||
Reference in New Issue
Block a user