Skip to content

Commit

Permalink
zimbraLdap: ldap.sh: also delete ldap.*
Browse files Browse the repository at this point in the history
  • Loading branch information
kreatoo committed Jan 25, 2025
1 parent 1fdfbf0 commit e1d074c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zimbraLdap/ldap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ su - zimbra -c "/opt/zimbra/libexec/zmslapcat -c \"$backup_dir\""
su - zimbra -c "/opt/zimbra/libexec/zmslapcat \"$backup_dir\""

# Remove old backups (older than 7 days)
find "$backup_dir" -type f -name "ldap-*" -mtime +7 -exec rm {} \;
find "$backup_dir" -type f \( -name "ldap-*" -o -name "ldap.*" \) -mtime +7 -exec rm {} \;

0 comments on commit e1d074c

Please sign in to comment.