Safeguarding your self-hosted password manager is critical, but simply copying the database file while it's running can lead to data corruption. This tool provides a reliable, containerized solution to correctly back up your Vaultwarden instance. It is designed to handle the database backup process properly, ensuring the integrity of your vault data.
Packed into a simple Docker image, it offers a robust set of features for complete peace of mind:
tar.xz file.services:
vaultwarden:
image: vaultwarden/server:latest
container_name: vaultwarden
restart: unless-stopped
environment:
- WEBSOCKET_ENABLED=true
volumes:
- ./vw-data:/data
ports:
- 8080:80
vaultwarden-backup:
image: bruceforce/vaultwarden-backup:latest
container_name: vaultwarden-backup
restart: unless-stopped
depends_on:
- vaultwarden
environment:
- CRON_TIME=0 2 * * *
- BACKUP_KEEP_DAYS=30
- TIMEZONE=UTC
- ZIP_PASSWORD=${ZIP_PASSWORD}
volumes:
- ./vw-data:/data
- ./vw-backups:/backupsZIP_PASSWORD=your_super_secret_backup_passwordAuto-fetched about 21 hours ago
Auto-fetched about 21 hours ago