updates after black october

This commit is contained in:
Kamil118 committed 2026-10-25 21:34:40 +00:00
1 parent db197fe499
commit d3ca5453b8
8 files changed
+48 -8

No files matched your search

+10 -3
View File
@@ -3,6 +3,8 @@
exec 9> /home/debian/backup.lock
flock -n 9 || exit 1
nextcloud_disabled = 0
set -e
# List all required tools
@@ -21,7 +23,10 @@ mkdir -p postgres_backup
cleanup_services() {
echo "Resuming normal operations..."
# Disable Nextcloud maintenance mode
docker exec -u www-data nextcloud_app php occ maintenance:mode --off || true
if [nextcloud_disabled -eq 1] then
docker exec -u www-data nextcloud_app php occ maintenance:mode --off || true
fi
# Start all services back up (using start instead of stop)
docker start gitea jellyfin synapse-foxgirls || true
@@ -31,7 +36,9 @@ cleanup_services() {
trap cleanup_services EXIT INT TERM
echo "Pausing services..."
docker exec -u www-data nextcloud_app php occ maintenance:mode --on || true
if [nextcloud_disabled -eq 1] then
docker exec -u www-data nextcloud_app php occ maintenance:mode --on || true
fi
docker stop gitea jellyfin synapse-foxgirls || true
@@ -114,7 +121,7 @@ rclone delete "${BACKUP_REMOTE}" --min-age 60d --rmdirs --log-file="$HOME/backup
echo "Backup Complete"
wget -q -O /dev/null "${MONITORURL}" || true
curl -s -o /dev/null "${MONITORURL}" || true
#todo make something to test bakcups
#gpg --batch -d --passphrase "password_here" full_backup_2026-08-19_01-00.tar.xz.gpg | xz -d -T0 | tar xf -