September 2022
pdb_diff - Export KeepassXC database to CSV and diff
with vimdiff.
pdb_diff [-h]
filea fileb
Manually syncing KeePassXC files between two devices is more secure than using a cloud storage for keeping it in sync automatically.
The packaged keepassxc-cli binary of the KeePassXC
application on macOS supports exporting a KeePassXC database to a CSV
file.
By using a diff tool, one can manually sync the database and then re-import on the second device.
The command creates two temporary files in the working directory of its execution. After exiting the diff tool, you’ll have to hit any key in order to proceed with cleaning them up.
-h, --helpPrints help
File A (left) which is exported and feeded to the diff tool.
File B (right) which is exported and feeded to the diff tool.
successful execution
error while parsing command line arguments
The command is currently available on macOS platforms only.
Note: Pull requests are welcome to make this more platform agnostic.
no valid keepassxc-cli executable found
This may happen, if the application is not installed within
/Applications.
Please check, if it is installed within ~/Applications/
and adjust the path in the pdb_diff command
accordingly.
Note: Pull requests are welcome to make this more agnostic towards installation locations.
$ pdb_diff passwords-desktop.kdbx passwords-mobile.kdbx
vimdiff(1)