Skip to content

wms backup

Back up ModernWMS's database via SQLite's online backup API (--encrypt to seal it with a passphrase)

Writes a consistent copy of ModernWMS's database. It holds every user's password hash, so --encrypt seals it with a passphrase (age format: age -d file.age opens it too), proves the sealed copy decrypts, and only then deletes the plaintext. The passphrase comes from --passphrase-file, the WMS_BACKUP_PASSPHRASE environment variable or a hidden prompt — never from a command-line argument. Lose it and the backup is unrecoverable. Restore with wms backup decrypt.

wms backup [flags]

Examples

wms backup
  wms backup --encrypt --passphrase-file ~/.config/wms-go/backup.key

Options

      --dry-run                  show where the backup would go and stop
      --encrypt                  seal the backup with a passphrase (age)
      --passphrase-file string   read the passphrase from this file

Subcommands