Portabase Logo
CLIGuides

Decrypt a backup

Restore the original archive from an encrypted Portabase backup, offline.

At the end of this guide, you have the original archive of an encrypted .enc backup — no dashboard needed.

Prerequisites: the CLI installed, the .enc file(s).

Download the master key

In the dashboard, open Settings, Storage section, and download the master key. Save it as master_key.bin.

Decrypt one file

portabase decrypt backup.tar.gz.enc backup.tar.gz --key master_key.bin

Or a whole folder

portabase decrypt ./backups ./restored --key master_key.bin

Each file is processed independently; a summary lists any failure.

Next steps

Last updated on

On this page