remove
This commit is contained in:
parent
0d827de0d1
commit
1d15b08757
@ -12,5 +12,5 @@ DATE=$(date +%Y-%m-%d)
|
|||||||
# Create the zipped archive and append the date
|
# Create the zipped archive and append the date
|
||||||
zip -r "${ARCHIVE_DIR}/folder_${DATE}.zip" "${SOURCE_DIR}"
|
zip -r "${ARCHIVE_DIR}/folder_${DATE}.zip" "${SOURCE_DIR}"
|
||||||
|
|
||||||
# Delete files older than 14 days (change the number)
|
# Delete files older than 14 days
|
||||||
find "${ARCHIVE_DIR}" -name "folder_*.zip" -mtime +13 -exec rm {} \;
|
find "${ARCHIVE_DIR}" -name "folder_*.zip" -mtime +13 -exec rm {} \;
|
||||||
|
Loading…
Reference in New Issue
Block a user