Vaultwarden Backup

Protect your self-hosted password manager with automated backups. This Docker container uses rclone to store data on any cloud and sends email or webhook alerts.

Ensure your self-hosted password manager data is always safe with this dedicated backup solution for Vaultwarden. Running as a Docker container, it automates the entire backup process, giving you peace of mind. It leverages the power of rclone to securely upload your backups to a vast number of cloud storage providers, including Google Drive, OneDrive, S3, and many more.

This tool is highly configurable and offers a comprehensive set of features to protect your critical data:

  • Complete Backups: Saves your database (SQLite, PostgreSQL, MySQL/MariaDB), config.json, RSA keys, attachments, and sends folders.
  • Scheduled Automation: Uses CRON scheduling to run backups automatically at your preferred interval.
  • Secure Archives: Compresses all data into a single, password-protected zip or 7z archive for security and convenience.
  • Smart Retention: Automatically deletes old backups after a specified number of days to manage storage space.
  • Status Notifications: Stay informed with email and webhook notifications for backup start, success, and failure events.
  • Simple Restoration: Provides a straightforward command-line interface to restore your entire Vaultwarden instance from a backup file.

Directory Structure

vaultwarden-backup
vaultwarden
rclone-data
vw-data
.env
docker-compose.yml

docker-compose.yml

services:
  vaultwarden:
    image: vaultwarden/server:latest
    container_name: vaultwarden
    restart: always
    volumes:
      - ./vw-data:/data
    ports:
      - 8080:80

  vaultwarden-backup:
    image: ttionya/vaultwarden-backup:latest
    container_name: vaultwarden-backup
    restart: always
    environment:
      - RCLONE_REMOTE_NAME=BitwardenBackup
      - RCLONE_REMOTE_DIR=/VaultwardenBackup/
      - CRON=5 * * * *
      - ZIP_ENABLE=TRUE
      - ZIP_PASSWORD=${ZIP_PASSWORD}
      - BACKUP_KEEP_DAYS=30
      - TIMEZONE=UTC
    volumes:
      - ./vw-data:/data
      - ./rclone-data:/config
    depends_on:
      - vaultwarden

.env

ZIP_PASSWORD=your_super_secret_password
Categories:

Share:

Ad
Favicon

 

  
 

Similar to Vaultwarden Backup

Favicon

 

  
  
Favicon

 

  
  
Favicon