update backup-synapse script and cleanup

change directory of backup files
first run cleanup script then create backup
start synapse service after db backup (do now wait for media files)
This commit is contained in:
2026-04-15 14:18:09 +03:30
parent f4de17d01f
commit 8a08bbc28a
3 changed files with 28 additions and 15 deletions
+3 -2
View File
@@ -3,9 +3,10 @@ set -euo pipefail
### CONFIG ###
DATE=$(date +%F)
BACKUPS_DIR="$HOME/backups/synapse"
#BACKUPS_DIR="$HOME/backups/synapse"
BACKUPS_DIR="/mnt/disk/backups/synapse"
DRY_RUN=true
KEEP_COUNT=4
KEEP_COUNT=1
# Function to display usage information
usage() {