From: Edward Delaporte Date: Wed, 8 Apr 2026 01:53:12 +0000 (-0500) Subject: Tweaks X-Git-Url: https://us-delaporte.pagekite.me/gitweb/matrix-cadbury.git/commitdiff_plain/d5186c1e24009e11e88e010f1dd2b472637bc924 Tweaks --- 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