From d5186c1e24009e11e88e010f1dd2b472637bc924 Mon Sep 17 00:00:00 2001 From: Edward Delaporte Date: Tue, 7 Apr 2026 20:53:12 -0500 Subject: [PATCH] Tweaks --- service/backup.sh | 2 ++ service/check_db.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/service/backup.sh b/service/backup.sh index 48d01c3..37dae61 100755 --- a/service/backup.sh +++ b/service/backup.sh @@ -1,9 +1,11 @@ # Avoid corruption by stopping Cadbury systemctl stop cadbury INSTALL_DIR=/etc/matrix-cadbury + # Create backup files while Cadbuary is paused mkdir -p $INSTALL_DIR/backups cp $INSTALL_DIR/*.db $INSTALL_DIR/backups + # Resume Cadbury systemctl start cadbury diff --git a/service/check_db.sh b/service/check_db.sh index 9085ec4..c5dc50b 100755 --- a/service/check_db.sh +++ b/service/check_db.sh @@ -1,3 +1,3 @@ echo "Checking DB file $1" echo "PRAGMA quick_check;" | sqlite3 $1 -ls -h $1 +ls -l $1 -- 2.47.3