1
0
mirror of https://github.com/xzeldon/vwdump.git synced 2025-07-16 06:34:42 +03:00

Added more logging and use install instead of mkdir

fixes #12
This commit is contained in:
10
2020-10-18 19:17:27 +02:00
parent 3f0bd862f7
commit 51889d3be3
3 changed files with 13 additions and 8 deletions

View File

@ -44,7 +44,7 @@ docker run --rm --volumes-from=bitwarden -v /tmp/myBackup:/myBackup --entrypoint
| ----- | ----- |
| 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 |
| 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" |
| TIMESTAMP | Set to `true` to append timestamp to the `BACKUP_FILE` |
| UID | User ID to run the cron job with |
@ -53,6 +53,8 @@ docker run --rm --volumes-from=bitwarden -v /tmp/myBackup:/myBackup --entrypoint
| CRONFILE | Path to the cron file *inside* the container |
| DELETE_AFTER | Delete old backups after X many days |
[^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.
## Common erros
### Wrong permissions
`Error: unable to open database file` is most likely caused by permission errors.
@ -62,4 +64,4 @@ 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).