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

Added tzdata

fixes #14
This commit is contained in:
1O 2021-01-24 19:59:39 +01:00
parent 026ef778b6
commit 41c2ffe086
No known key found for this signature in database
GPG Key ID: 6D48F9802A5457C8
2 changed files with 18 additions and 14 deletions

View File

@ -6,7 +6,8 @@ RUN addgroup -S app && adduser -S -G app app
RUN apk add --no-cache \
sqlite \
busybox-suid \
su-exec
su-exec \
tzdata
ENV DB_FILE /data/db.sqlite3
ENV BACKUP_FILE /data/db_backup/backup.sqlite3

View File

@ -41,7 +41,7 @@ docker run --rm --volumes-from=bitwarden -e UID=0 -e BACKUP_FILE=/myBackup/backu
## Environment variables
| ENV | Description |
| ----- | ----- |
| ----------------------- | ------------------------------------------------------------------------ |
| DB_FILE | Path to the Bitwarden sqlite3 database *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]) |
@ -52,8 +52,10 @@ docker run --rm --volumes-from=bitwarden -e UID=0 -e BACKUP_FILE=/myBackup/backu
| LOGFILE | Path to the logfile *inside* the container |
| CRONFILE | Path to the cron file *inside* the container |
| 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.
[^2]: see <https://en.wikipedia.org/wiki/List_of_tz_database_time_zones> for more information
## Common erros
### Wrong permissions
@ -64,4 +66,5 @@ via the `UID` and `GID` environment variables like described above.
### Wrong timestamp
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).