ansible-role-orientdb/templates/backup-cleaner.sh.j2

9 lines
238 B
Django/Jinja

#!/bin/bash
BACKUP_RETENTION_DAYS="{{ orientdb_automatic_backup_retention_days }}"
BACKUP_DIRECTORY="{{ orientdb_automatic_backup_directory }}"
find ${BACKUP_DIRECTORY} -atime +${BACKUP_RETENTION_DAYS} -type f -exec rm -f {} \;
exit 0