#!/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