master
Lea 2024-02-23 23:28:46 +01:00
parent cf45a9d54b
commit 90ce232d05
Signed by: Lea
GPG Key ID: 1BAFFE8347019C42
1 changed files with 3 additions and 0 deletions

3
run.sh
View File

@ -5,3 +5,6 @@ node ./delete.js
mkdir -p "backup/$(date +'%Y-%m-%d %H-%M_%S')"
cp output-*.json "backup/$(date +'%Y-%m-%d %H-%M_%S')/"
# Delete backups older than 7 days
find ./backup -type d -mtime +7 | xargs -I "{}" rm -rv "{}"