Skip to main content

Usage

<backup-id> can be the short 10-character ID shown by capsule backup list, or the full UUID from the dashboard.

Finding your backup ID

Run capsule backup list to see all available backups and their short IDs:
You can also copy a backup’s short ID from the Backups page in the dashboard using the copy icon next to each row.

When to run this

capsule download must be run on a server that holds the original encryption key. The downloaded .sql.gz file is already decrypted — if you move it to another machine to restore, that machine does not need the key. But if you try to run capsule download itself on a server with a different key, decryption will fail. Use capsule auth --restore to import the correct key onto any server that needs it.
The download button on the dashboard gives you the raw .enc (encrypted) file, which is not directly usable. capsule download decrypts it on the server that holds your key.

What it does

  1. Resolves the short ID to the full UUID if needed
  2. Fetches the backup from Capsule cloud storage using a short-lived presigned URL
  3. Decrypts it locally using the AES-256 key stored on your server
  4. Saves the result as a standard .sql.gz file
The decryption key never leaves your server — Capsule’s infrastructure only ever sees the encrypted file.

Example

Flags

After downloading

Restore the file to any connection with:
See capsule restore for full restore options.

Requirements

  • Must be run on the server that originally took the backup, or any server that has imported the same encryption key via capsule auth --restore
  • Requires an active license key (capsule auth must have been run first)

See also