multibackup aktualisiert

This commit is contained in:
2025-09-16 15:30:02 +02:00
parent c872ecd9a3
commit 74374df020

View File

@@ -143,7 +143,7 @@ for folder_to_backup in "${folders_to_backup[@]}"; do
# Remove old backups # Remove old backups
if [[ ! -z "${backup_retention}" ]]; then if [[ ! -z "${backup_retention}" ]]; then
find "${absolute_backup_destination}/" -maxdepth 1 -mtime "${backup_retention}" -type f -exec rm -rf {} \; find "${absolute_backup_destination}/" -daystart -maxdepth 1 -mtime "${backup_retention}" -type f -exec rm -rf {} \;
fi fi
else else
# Doesn't exist => skip # Doesn't exist => skip