This commit is contained in:
Lea 2024-02-23 23:28:46 +01:00
parent cf45a9d54b
commit 90ce232d05
Signed by: Lea
GPG key ID: 1BAFFE8347019C42

3
run.sh
View file

@ -5,3 +5,6 @@ node ./delete.js
mkdir -p "backup/$(date +'%Y-%m-%d %H-%M_%S')" mkdir -p "backup/$(date +'%Y-%m-%d %H-%M_%S')"
cp output-*.json "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 "{}"