1
0
mirror of https://github.com/xzeldon/vwdump.git synced 2025-06-28 03:08:14 +03:00

Updated README.md

added rpi3 build
This commit is contained in:
1O 2018-11-17 01:05:47 +01:00
parent d07833408b
commit b82c063c06
2 changed files with 30 additions and 2 deletions

View File

@ -24,6 +24,15 @@ build_master:
only:
- master
build_master_rpi3:
<<: *docker_build
script:
- *docker_login
- docker build --pull -t "$IMAGE_NAME:rpi3" .
- docker push "$IMAGE_NAME:rpi3"
tags:
- rpi3
build:
<<: *docker_build
script:

View File

@ -1,16 +1,35 @@
# bitwarden_rs Backup
---
Docker Containers for bitwarden_rs Backup.
## Usage
The default tag `latest` should be used for a x86-64 system. If you try to run the container on a raspberry pi 3 you should use the tag `rpi3`. Also make sure that your bitwarden_rs container is named `bitwarden` otherwise you have to replace the container name in the `--volumes-from` section of the `docker run` call.
### Automatic Backups
A cron daemon is running inside the container and the container keeps running in background.
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
```
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/bw_backup:latest
### 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.
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 /bachkup.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"
```
## Environment variables