]> apps.delaporte.us Git - matrix-cadbury.git/commitdiff
Add test data helper
authorEdward Delaporte <edward@delaporte.us>
Mon, 4 May 2026 22:40:14 +0000 (17:40 -0500)
committerEdward Delaporte <edward@delaporte.us>
Mon, 4 May 2026 22:40:14 +0000 (17:40 -0500)
.gitignore
service/get_test_data.sh [new file with mode: 0755]

index 74ce3c89122b72c6019161f2a4a868ecf7f64030..f31873cb0dcdc6b5d797fb2413fbb56aa1e7114a 100644 (file)
@@ -6,3 +6,4 @@ build/
 # Matrix Bot
 session*
 *.log
+*.db
diff --git a/service/get_test_data.sh b/service/get_test_data.sh
new file mode 100755 (executable)
index 0000000..2e4358f
--- /dev/null
@@ -0,0 +1,9 @@
+# Avoid corruption by stopping Cadbury
+INSTALL_DIR=/etc/matrix-cadbury
+CHECK_CMD=service/check_db.sh
+
+# Create backup files while Cadbuary is paused
+scp $1:$INSTALL_DIR/*.db .
+
+# Verify Backups
+$CHECK_CMD chore.db