-
Notifications
You must be signed in to change notification settings - Fork 126
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
Perform an ad-hoc backup with command line #94
Comments
Just to add to my issue, here is an example of how to run the backup command immediately:
BITWARDEN_VOLUME corresponds to the docker-compose volume defined for the bitwarden container. other envs can be added to customize the backup.
|
Interesting idea. The backup tool doesn't support forced backups because it uses cron to perform backup operations periodically and we don't recommend triggering it with external actions. So there is intentionally no support for backup commands like Also, the backup program just outputs the backup file, like In practice, of course, it is sometimes necessary to perform a backup immediately after starting the container. It is possible that the configured cron may be a long time away from the current time and you need to test if the backups and message notifications are working properly. Of course I prefer to modify These are just a few reasons why I don't support forced backups, but of course if you really need to perform backups manually, modifying entrypoint is a viable method. Welcome to discuss this issue. |
@ttionya, these are good points. Nevertheless, a centralized backup tool such as Kopia (https://kopia.io) can provide a centralized view of all backups. Verify their consistency, failed jobs... etc. Sure, for those where a simple cron + uploader are enough, are well served with vaultwarden-backup. My suggestion is to make it more flexible. Just to allow integrations with other tools that can extend its functionality. (it is not difficult to override the entrypoint as I demonstrated, just looks a little an unnecessary hack that may stop working eventually due to lack of support) |
A "direct execution" option would definitely be appreciated; I use podman and systemd to manage my containers, and being able to use a systemd.timer for scheduling backups would be great. |
Thanks for the nice tool.
I noticed that it is possible to perform a restore on demand with some command line parameters. However, it is not possible to force a backup.
I would appreciate it if that was a feature too.
Currently, that could be done by overriding the entrypoint and running a very long command line.
Ideally, we could pass the source and destination mount points and some options either via envs ou parameters (avoiding at least the hack to override the entrypoint)
thanks
The text was updated successfully, but these errors were encountered: