Export data from keepass file

Posted on in category «Tech» by fnv with tags ,

KeePassX doesn't support partial exports which is useful if you want to split one password container into more smaller ones and then use these smaller parts on different devices. For my case, I have primary keepass storage on my laptop and the exports are distributed over my rest devices which I consider not as much trusted as my laptop.

You just need to install kpcli and use the export function following:

$ kpcli
$ open database.kdbx
Please provide the master password: 
$ ls
Main
Project1
Project2
$ cd Project1
$ export project1.kdbx
Please provide the master password:
Retype to verify:

NOTE 1: kpcli doesn't support special characters in the name of items/folders, so you have to remove them before you make the export

NOTE 2: It's possible to use kpcli with expect to make some useful scripts nevertheless then you have to rely on plaintext passwords:-(: