commit b9f3adf91d2531fd689e980f777e0f3135378b0a parent 20ecdc2b0cbb864e11d40a5955556c064b9f2369 Author: JayVii <jayvii[AT]posteo[DOT]de> Date: Sat, 20 Jul 2024 12:20:11 +0200 fix: correct syntax for backup process in docker Diffstat:
M | README.md | | | 15 | ++++++++++----- |
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md @@ -80,11 +80,16 @@ sqlite3 ${KTISTEC_PATH}/db/ktistec.db \ ```bash # the ktistec-container does not contain a sqlite CLI client, # so we use a new temporary alpine container instead -docker run -ti --rm -v /var/www/ktistec/db:/db alpine:latest \ - apk update && \ - apk add sqlite && \ - sqlite3 /db/ktistec.db \ - ".backup \"/backups/ktistec_backup_$(date +%Y-%m-%d).sq3\"" +docker run -ti --rm \ + -v /var/www/ktistec/db:/db \ + -v /var/www/ktistec/backups:/backups \ + alpine:latest \ + sh -c ' +apk update && \ +apk add sqlite && \ +sqlite3 /db/ktistec.db \ +".backup \"/backups/ktistec_backup_$(date +%Y-%m-%d).sq3\"" +' ``` ### Uploads