From 0d827de0d1520d36f8cdd8b845b6b4b07fa245e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20M=C3=B6lle?= Date: Tue, 11 Apr 2023 23:09:14 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9Ezip=5Ffolder=5Fdaily.sh=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zip_folder_daily.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zip_folder_daily.sh b/zip_folder_daily.sh index 09c63fc..83cf098 100644 --- a/zip_folder_daily.sh +++ b/zip_folder_daily.sh @@ -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 {} \;