Skip to main content

export keepass

Export the resources you can access to a KeePass .kdbx file, as the browser extension writes it.

export keepass​

Write the resources to a KeePass database, locked with a password, a key file or both.

passbolt export keepass [flags]

Flags​

FlagRequiredDescription
-f, --file <FILE>NoFile to write. -o, --output is still accepted. Default: passbolt-export.kdbx.
-p, --password <PASSWORD>NoKeePass password. Empty or left out, it is asked for (Enter KeePass Password:), or read from stdin when stdin is not a terminal, unless --keyfile is given.
--keyfile <FILE>NoKey file locking the file, with the password or alone. Default: none.
--format <FORMAT>NoWhere the TOTP goes: kdbx-others, an otpauth:// URI in a protected otp field (KeePassXC); kdbx, the TimeOtp-* fields of KeePass. Default: kdbx-others.
--kdbx-version <VERSION>Nov3: KDBX 3.1 (AES-KDF, 300,000 rounds, AES-256-CBC, Salsa20); v4: KDBX 4 (Argon2). Default: v3.
--folder-id <UUID>NoExport only this folder and its sub-folders. Default: all.
note

An empty answer to the password prompt writes a file without password, as the browser extension does. A KDBX 4 file needs a password or a key file.

Examples​

Export the vault, typing the password at the prompt​

passbolt export keepass

Export to a file with a password​

passbolt export keepass -f ~/backup.kdbx -p "kdbx-master-password"

Lock the file with a key file only​

passbolt export keepass -f ~/backup.kdbx --keyfile ~/backup.key

Write the TOTP as KeePass does​

passbolt export keepass -f ~/backup.kdbx -p "kdbx-master-password" --format kdbx

Write a KDBX 4 file​

passbolt export keepass -f ~/backup.kdbx -p "kdbx-master-password" --kdbx-version v4

What the file holds​

  • The database and its top group are named passbolt export. The top group holds one sub-group per Passbolt folder.
  • Each entry has the title, user name, password, first URI and description of the resource, its other URIs as KP2A_URL, KP2A_URL_2… fields, its TOTP, its expiry date, and its KeePass icon and background colour.
  • Each custom field is a protected field named after its key. A key taken by another field becomes key (1), key (2)…, with a warning on stderr.

Resources that fail to decrypt​

A resource that cannot be decrypted is reported on stdout and skipped; the export still succeeds:

Skipping Export of Resource <ID> <NAME> Because of: <ERROR>

Export a large vault​

A large vault may need a longer --timeout, which bounds the whole command. See configuration.