Fixed log cleanup command

main
capntack 1 year ago
parent b56424903d
commit b2458e2309

@ -159,7 +159,7 @@ restic check \
############## ##############
# Clean up log files older than 14 days # Clean up log files older than 14 days
find $LOG_DIR -mtime +"${LOG_RETENTION}" -type f -delete find "${LOG_DIR}" -mtime +"${LOG_RETENTION}" -type f -delete
# End of script message in log # End of script message in log
echo > >(tee >(echo "$(ts "%Y-%m-%d_%H:%M:%S") Backup Script Complete" >> "${BACKUP_LOG}")) echo > >(tee >(echo "$(ts "%Y-%m-%d_%H:%M:%S") Backup Script Complete" >> "${BACKUP_LOG}"))
Loading…
Cancel
Save