X-Git-Url: https://apps.delaporte.us/gitweb/matrix-cadbury.git/blobdiff_plain/d26d68941e97215b1d62524c55aa06a4dafb384e..d5186c1e24009e11e88e010f1dd2b472637bc924:/service/backup.sh 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