„append“ hinzufügen
This commit is contained in:
parent
2a8b86fcd2
commit
d776db6ea7
8
append
Normal file
8
append
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# Create a timestamp in the format YYYY-MM-DD
|
||||||
|
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
|
||||||
|
find "${ARCHIVE_DIR}" -name "folder_*.zip" -mtime +13 -exec rm {} \;
|
Loading…
Reference in New Issue
Block a user