From ee1563510626730122d451082660187b1227ed7a Mon Sep 17 00:00:00 2001 From: jmqm Date: Tue, 25 May 2021 17:09:48 -0500 Subject: [PATCH] Change docker repository (#3) --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ecf922d..adcc5aa 100644 --- a/README.md +++ b/README.md @@ -15,34 +15,34 @@ 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 jmqm/bw_backup +docker run -d --restart=always --name bitwarden_backup --volumes-from=bitwarden jmqm/bitwarden_rs-backup ``` Example for backup including attachment folder (see [Environment variables section](#environment-variables) for more information) ```sh -docker run -d --restart=always --name bitwarden_backup --volumes-from=bitwarden -e ATTACHMENT_BACKUP_FILE=/data/attachments_backup/attachments jmqm/bw_backup +docker run -d --restart=always --name bitwarden_backup --volumes-from=bitwarden -e ATTACHMENT_BACKUP_FILE=/data/attachments_backup/attachments jmqm/bitwarden_rs-backup ``` Example for backup including send folder (see [Environment variables section](#environment-variables) for more information) ```sh -docker run -d --restart=always --name bitwarden_backup --volumes-from=bitwarden -e SEND_BACKUP_FILE=/data/sends_backup/sends jmqm/bw_backup +docker run -d --restart=always --name bitwarden_backup --volumes-from=bitwarden -e SEND_BACKUP_FILE=/data/sends_backup/sends jmqm/bitwarden_rs-backup ``` Example for hourly backups ```sh -docker run -d --restart=always --name bitwarden_backup --volumes-from=bitwarden -e CRON_TIME="0 * * * *" jmqm/bw_backup +docker run -d --restart=always --name bitwarden_backup --volumes-from=bitwarden -e CRON_TIME="0 * * * *" jmqm/bitwarden_rs-backup ``` Example for backups that delete after 30 days ```sh -docker run -d --restart=always --name bitwarden_backup --volumes-from=bitwarden -e DELETE_AFTER=30 jmqm/bw_backup +docker run -d --restart=always --name bitwarden_backup --volumes-from=bitwarden -e DELETE_AFTER=30 jmqm/bitwarden_rs-backup ``` ### Manual Backups You can use the crontab of your host to schedule the backup and the container will only be running during the backup process. ```sh -docker run --rm --volumes-from=bitwarden jmqm/bw_backup manual +docker run --rm --volumes-from=bitwarden jmqm/bitwarden_rs-backup manual ``` Keep in mind that the above command will be executed inside the container. So @@ -52,7 +52,7 @@ If you want the backed up file to be stored outside the container you have to mo a directory by adding `-v :`. The complete command could look like this ```sh -docker run --rm --volumes-from=bitwarden -e UID=0 -e BACKUP_FILE=/myBackup/backup.sqlite3 -e TIMESTAMP=true -v /tmp/myBackup:/myBackup jmqm/bw_backup manual +docker run --rm --volumes-from=bitwarden -e UID=0 -e BACKUP_FILE=/myBackup/backup.sqlite3 -e TIMESTAMP=true -v /tmp/myBackup:/myBackup jmqm/bitwarden_rs-backup manual ``` ## Environment variables