„zip_folder_daily.sh“ ändern

This commit is contained in:
Yann Mölle 2023-04-11 23:09:14 +00:00
parent 4d00428ed5
commit 0d827de0d1

View File

@ -12,5 +12,5 @@ DATE=$(date +%Y-%m-%d)
# Create the zipped archive and append the date
zip -r "${ARCHIVE_DIR}/folder_${DATE}.zip" "${SOURCE_DIR}"
# Delete files older than 14 days
# Delete files older than 14 days (change the number)
find "${ARCHIVE_DIR}" -name "folder_*.zip" -mtime +13 -exec rm {} \;