Vaultwarden Backup (Bruceforce)

Automate backups for your self-hosted Vaultwarden instance. Schedule regular, compressed, and optionally encrypted archives of your critical password data.

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:

  • Automated Scheduling: Runs on a cron-based schedule you can customize, from hourly to daily backups.
  • Comprehensive Archives: Includes the database, attachments, config.json, and RSA keys in a single compressed tar.xz file.
  • Strong Encryption: Optionally encrypt your backups with a passphrase or a GPG public key, making them safe to store on any cloud service or remote server.
  • Manual & On-Demand: Easily run a manual backup with a single command before performing system maintenance.
  • Automatic Retention: Configure the tool to automatically delete old backups after a set number of days to manage storage space.
  • Extensive Configuration: Use environment variables to control every aspect, including backup contents, scheduling, and user permissions.

Directory Structure

vaultwarden-backup-bruceforce
vaultwarden
vw-backups
vw-data
.env
docker-compose.yml

docker-compose.yml

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:/backups

.env

ZIP_PASSWORD=your_super_secret_backup_password
Categories:

Share:

Ad
Favicon

 

  
 

Similar to Vaultwarden Backup (Bruceforce)

Favicon

 

  
  
Favicon

 

  
  
Favicon