mirror of
https://github.com/xzeldon/vwdump.git
synced 2025-06-28 09:38:14 +03:00
parent
026ef778b6
commit
41c2ffe086
@ -6,7 +6,8 @@ RUN addgroup -S app && adduser -S -G app app
|
|||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
sqlite \
|
sqlite \
|
||||||
busybox-suid \
|
busybox-suid \
|
||||||
su-exec
|
su-exec \
|
||||||
|
tzdata
|
||||||
|
|
||||||
ENV DB_FILE /data/db.sqlite3
|
ENV DB_FILE /data/db.sqlite3
|
||||||
ENV BACKUP_FILE /data/db_backup/backup.sqlite3
|
ENV BACKUP_FILE /data/db_backup/backup.sqlite3
|
||||||
|
29
README.md
29
README.md
@ -40,20 +40,22 @@ docker run --rm --volumes-from=bitwarden -e UID=0 -e BACKUP_FILE=/myBackup/backu
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Environment variables
|
## Environment variables
|
||||||
| ENV | Description |
|
| ENV | Description |
|
||||||
| ----- | ----- |
|
| ----------------------- | ------------------------------------------------------------------------ |
|
||||||
| DB_FILE | Path to the Bitwarden sqlite3 database *inside* the container |
|
| DB_FILE | Path to the Bitwarden sqlite3 database *inside* the container |
|
||||||
| BACKUP_FILE | Path to the desired backup location *inside* the container |
|
| BACKUP_FILE | Path to the desired backup location *inside* the container |
|
||||||
| BACKUP_FILE_PERMISSIONS | Sets the permissions of the backup file (**CAUTION** [^1]) |
|
| BACKUP_FILE_PERMISSIONS | Sets the permissions of the backup file (**CAUTION** [^1]) |
|
||||||
| CRON_TIME | Cronjob format "Minute Hour Day_of_month Month_of_year Day_of_week Year" |
|
| CRON_TIME | Cronjob format "Minute Hour Day_of_month Month_of_year Day_of_week Year" |
|
||||||
| TIMESTAMP | Set to `true` to append timestamp to the `BACKUP_FILE` |
|
| TIMESTAMP | Set to `true` to append timestamp to the `BACKUP_FILE` |
|
||||||
| UID | User ID to run the cron job with |
|
| UID | User ID to run the cron job with |
|
||||||
| GID | Group ID to run the cron job with |
|
| GID | Group ID to run the cron job with |
|
||||||
| LOGFILE | Path to the logfile *inside* the container |
|
| LOGFILE | Path to the logfile *inside* the container |
|
||||||
| CRONFILE | Path to the cron file *inside* the container |
|
| CRONFILE | Path to the cron file *inside* the container |
|
||||||
| DELETE_AFTER | Delete old backups after X many days |
|
| DELETE_AFTER | Delete old backups after X many days |
|
||||||
|
| TZ | Set the timezone inside the container [^2]
|
||||||
|
|
||||||
[^1]: The permissions should at least be 700 since the backup folder itself gets the same permissions and with 600 it would not be accessible.
|
[^1]: The permissions should at least be 700 since the backup folder itself gets the same permissions and with 600 it would not be accessible.
|
||||||
|
[^2]: see <https://en.wikipedia.org/wiki/List_of_tz_database_time_zones> for more information
|
||||||
|
|
||||||
## Common erros
|
## Common erros
|
||||||
### Wrong permissions
|
### Wrong permissions
|
||||||
@ -64,4 +66,5 @@ via the `UID` and `GID` environment variables like described above.
|
|||||||
|
|
||||||
### Wrong timestamp
|
### Wrong timestamp
|
||||||
If you need timestamps in your local timezone you should mount `/etc/timezone:/etc/timezone:ro` and `/etc/localtime:/etc/localtime:ro`
|
If you need timestamps in your local timezone you should mount `/etc/timezone:/etc/timezone:ro` and `/etc/localtime:/etc/localtime:ro`
|
||||||
like it's done in the [docker-compose.yml](docker-compose.yml).
|
like it's done in the [docker-compose.yml](docker-compose.yml). An other possible solution is to set the environment variable accordingly (like `TZ=Europe/Berlin`)
|
||||||
|
(see <https://en.wikipedia.org/wiki/List_of_tz_database_time_zones> for more information).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user