mirror of
https://github.com/osixia/container-openldap.git
synced 2026-11-06 12:40:36 -04:00
openldap-ctl backup --clean removed every file older than N days in the backup directory, including manual and pre-upgrade backups. It now only removes backup files, and --clean-prefix limits it to backups starting with a prefix. Cron backups are named openldap-cron-<date>-<version> and cleaned with --clean-prefix openldap-cron-. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 lines
171 B
Bash
2 lines
171 B
Bash
OPENLDAP_CRON_JOB="15 2 * * * PATH=${PATH} container run -- openldap-ctl backup \"openldap-cron-$(date -I)-${OPENLDAP_VERSION}\" --clean 15 --clean-prefix openldap-cron-"
|