mirror of
https://github.com/xzeldon/vwdump.git
synced 2025-06-28 03:08:14 +03:00
changed default backup path
updated README.md to new image paths
This commit is contained in:
parent
21e51383e2
commit
f7e48cc4de
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user