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