Add backup scripts

This commit is contained in:
2024-03-10 20:40:38 +08:00
parent 54ab377e94
commit b70de25dae
6 changed files with 139 additions and 19 deletions

6
clean_nextcloud.sh Executable file
View File

@@ -0,0 +1,6 @@
#! /bin/bash
LOG_FILE="/home/awin/log/nextcloud_clean.log"
sudo docker exec --user www-data nextcloud-nextcloud-1 php /var/www/html/cron.php
echo "$(date +'%F %R:%S'): Nexcloud clean finished." > $LOG_FILE