-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Isssue with starting containers on Synology #107
Comments
The command Please take a look at the services:
backup:
volumes:
- ./vaultwarden-rclone-data:/config/ # remove this line Since you have already mapped the local directory |
Hi @ttionya, backup:
image: ttionya/vaultwarden-backup:latest
restart: always
# environment:
# RCLONE_REMOTE_NAME: 'BitwardenBackup'
# RCLONE_REMOTE_DIR: '/BitwardenBackup/'
# RCLONE_GLOBAL_FLAG: ''
# CRON: '5 * * * *'
# ZIP_ENABLE: 'TRUE'
# ZIP_PASSWORD: 'WHEREISMYPASSWORD?'
# ZIP_TYPE: 'zip'
# BACKUP_FILE_DATE_SUFFIX: ''
# BACKUP_KEEP_DAYS: 0
# PING_URL: ''
# MAIL_SMTP_ENABLE: 'FALSE'
# MAIL_SMTP_VARIABLES: ''
# MAIL_TO: ''
# MAIL_WHEN_SUCCESS: 'TRUE'
# MAIL_WHEN_FAILURE: 'TRUE'
# TIMEZONE: 'UTC'
volumes:
- ./vw-data:/bitwarden/data/
# - ./vaultwarden-rclone-data:/config/
# - /path/to/env:/.env
volumes:
vaultwarden-data:
# Specify the name of the volume where you save the vaultwarden data,
# use vaultwarden-data for new users
# and bitwardenrs-data for migrated users
name: vaultwarden-data
# name: bitwardenrs-data
vaultwarden-rclone-data:
external: true
# Specify the name of the volume where you save the rclone configuration,
# use vaultwarden-rclone-data for new users
# and bitwardenrs-rclone-data for migrated users
name: vaultwarden-rclone-data
# name: bitwardenrs-rclone-data
|
Hi,
Next question is how to configure the container environments variable to save backup files outside container in fileshare? |
This backup tool is based on |
Hi, now I can confirm that backup to smb with rclone wroks :) The last issue that I'm facing with is the restore.
Output that logs but when I login into vaultwarden then database is actually empty :(
|
If you are using |
my sqlite database keeps failing after restarting container even without your container running.
https://github.com/ttionya/vaultwarden-backup/blob/master/docs/using-the-mysql-or-mariadb-backend.md |
I cannot ascertain whether it is due to the backup tool or vaultwarden, but I came across an issue dani-garcia/vaultwarden#2851 related to Vaultwarden. Perhaps, I should start considering ways to ensure the availability of backup files. However, my familiarity with databases is limited, and with my recent workload being heavy, progress in this regard may be slow. |
thanks for the input @ttionya, i really appreciate it. I belive that crashing sqlite database is due to corrupted WAL files and the fact that transactions are still being open while executing the backup. In regards to database restore I'm also a noob but I can at least confirm that executing that command will successfully restore mariadb database backup with your script. Only thing what would be great to add is that it could also restore whole vaultwarden /data directory. I think that shouldn't be diffiicult to write "restore" script that would do it all at once.
|
I apologize for not comprehending your meaning. The current restore script is restore the backup files to the |
Hi,
thanks for the containers, it's something that I'm looking for to backup my local vaultwarden instance but I'm having problem with understanding how to acually setup that.
Here's what I've done so far:
[BitwardenBackup]
type = smb
host = 10.0.0.130
user = rclone
pass = secretpasshashthatisprivate
Vaultwarden is running fine with that configuration but ttionya/vaultwarden-backup:latest container is failing to start and complaining that rclone is not configured correctly.
So what I am doing incorrectly?
The text was updated successfully, but these errors were encountered: