Backup your Vaultwarden password manager running in docker

Reading Time: < 1 minute

When you trust your personal and private account information to a password manager, you want to ensure you have reliable backups.

In my last video, I showed you how to set up Vaultwarden as a self-hosted password manager, and in this video, I will show you how to have a reliable and consistent backup of that password database. Now you are ready, in case disaster strikes and you need to restore your Vaultwarden password database.

Please find my docker-compose stack below to get you started:

version: "3.8"
services:
vaultwarden_backup:
image: bruceforce/vaultwarden-backup
container_name: vaultwarden_backup
restart: unless-stopped
init: true
volumes:
- /home/vikash/docker/vaultwarden/data:/data/
- /home/vikash/docker/vaultwarden_backup/backups:/backups/
- /home/vikash/docker/vaultwarden_backup/logs:/logs/
environment:
- BACKUP_DIR=/backups/
- LOG_DIR=/logs/
- CRON_TIME=0 5 * * *
- DELETE_AFTER=30
- TIMESTAMP=true
- BACKUP_ON_STARTUP=true
- BACKUP_ADD_DATABASE=true
- BACKUP_ADD_ATTACHMENTS=true
- BACKUP_ADD_CONFIG_JSON=true
- BACKUP_ADD_ICON_CACHE=true
- BACKUP_ADD_RSA_KEY=true
- LOG_LEVEL=INFO
- TZ= Europe/Amsterdam
(Visited 236 times, 2 visits today)

About Vikash Jhagroe

Equipped with more than 15 years of experience working on applications and systems, Vikash is a master at connecting businesses with the tech that is right for them. He is passionate about computers and computer systems, and he is committed to serving his clients well. He is a tech-wizard.

View all posts by Vikash Jhagroe

2 Comments on “Backup your Vaultwarden password manager running in docker”

  1. Hi,
    really nice to have a backup automated system.
    Thanks for the video.
    Could you please share the docker compose you use?
    Much appreciated
    Regards
    BioLogico

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.