Bug 13557 - Backups not purged
Summary: Backups not purged
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
Depends on:
Reported: 2018-08-02 08:39 UTC by trenta
Modified: 2018-08-02 08:41 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description trenta 2018-08-02 08:39:21 UTC
It seems that samba_backup script is not purging two files of backup.

Samba4 has 
find $WHERE -name "samba4_*bz2" -mtime +$DAYS -exec rm  {} \;
and works for this files

But backup also has two more files, please add this:
find $WHERE -name "etc*bz2" -mtime +$DAYS -exec rm  {} \;
find $WHERE -name "sysvol*bz2" -mtime +$DAYS -exec rm  {} \;

Tested and works with .../source4/scripting/bin/samba_backup