From 88aeeb4d1760dda735ea89914a8a3e4794b4f7fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20M=C3=B6lle?= Date: Wed, 12 Apr 2023 06:52:19 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9EExplanation=E2=80=9C=20hinzuf=C3=BCgen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Explanation.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Explanation.md diff --git a/Explanation.md b/Explanation.md new file mode 100644 index 0000000..d947420 --- /dev/null +++ b/Explanation.md @@ -0,0 +1,6 @@ +* The script sets the source directory (SOURCE_DIR) that will be zipped and the archive directory (ARCHIVE_DIR) where the zipped files will be stored. +* It creates a timestamp in the format YYYY-MM-DD and stores it in the DATE variable. +* The zip command is used to create the zipped archive and append the date to the file name. +* The find command is used to delete files older than 14 days in the archive directory. (edit in the script as needed) +* The cron entry schedules the script to run daily at 13:00 (1 PM). +* Install git and zip \ No newline at end of file