From 432d5bb2bc26d0191d80227799a791362308ab0b Mon Sep 17 00:00:00 2001 From: hxcde <30338980+hxcde@users.noreply.github.com> Date: Sat, 8 Apr 2023 21:40:28 +0200 Subject: [PATCH] Update README.md --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 99fa4da..40fa8c1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,9 @@ # folderarchive Daily Folder Backup and Rotation for Linux + +## Explanation: +- 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. +- The cron entry schedules the script to run daily at 13:00 (1 PM).