From f7e48cc4de74cb5d90130fc566abe1ed8fd776b2 Mon Sep 17 00:00:00 2001 From: 10 <2408212-10@users.noreply.gitlab.com> Date: Sun, 18 Nov 2018 14:26:08 +0100 Subject: [PATCH] changed default backup path updated README.md to new image paths --- Dockerfile | 2 +- README.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index ce1b10f..c244368 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN apk add --update \ COPY start.sh backup.sh / ENV DB_FILE /data/db.sqlite3 -ENV BACKUP_FILE /data/db_backup/backup.sqlite3 +ENV BACKUP_FILE /data/db-backup/backup.sqlite3 ENV CRON_TIME "0 5 * * *" ENV TIMESTAMP false diff --git a/README.md b/README.md index fc70680..5e69d62 100644 --- a/README.md +++ b/README.md @@ -11,12 +11,12 @@ A cron daemon is running inside the container and the container keeps running in Start backup container with default settings (automatic backup at 5 am) ```sh -docker run -d --restart=always --name bitwarden_backup --volumes-from=bitwarden registry.gitlab.com/1o/bitwarden_rs-backup/bw_backup +docker run -d --restart=always --name bitwarden_backup --volumes-from=bitwarden registry.gitlab.com/1o/bitwarden_rs-backup ``` Example for hourly backups ```sh -docker run -d --restart=always --name bitwarden_backup --volumes-from=bitwarden -e CRON_TIME="0 * * * *" registry.gitlab.com/1o/bitwarden_rs-backup/bw_backup +docker run -d --restart=always --name bitwarden_backup --volumes-from=bitwarden -e CRON_TIME="0 * * * *" registry.gitlab.com/1o/bitwarden_rs-backup ``` ### Manual Backups @@ -24,12 +24,12 @@ You can use the crontab of your host to schedule the backup and the container wi Example using the integrated Backup script. You can use Environment variables for database and backup location ```sh -docker run --rm --volumes-from=bitwarden registry.gitlab.com/1o/bitwarden_rs-backup/bw_backup /backup.sh +docker run --rm --volumes-from=bitwarden registry.gitlab.com/1o/bitwarden_rs-backup /backup.sh ``` If you want to run the sqlite commands manually you can use the following command ```sh -docker run --rm --volumes-from=bitwarden registry.gitlab.com/1o/bitwarden_rs-backup/bw_backup sqlite3 $DB_FILE ".backup $BACKUP_FILE" +docker run --rm --volumes-from=bitwarden registry.gitlab.com/1o/bitwarden_rs-backup sqlite3 $DB_FILE ".backup $BACKUP_FILE" ``` ## Environment variables