Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Former Member
3 years ago1PW CLI full backup of all items from all valuts
Hi, I'm about to implement an automated backup and audit solution for our business vaults. The basic objective for 1PW CLI is to list all items in all vaults and export the whole content of them in J...
Former Member
3 years agoThanks @ArunV1P that did the trick. I've written a small script extracting base item data into JSON files, then parsing the JSON to extract the file references and finally extracting all attachments into an item specific subfolder.
While this indeed works, when you have vaults with a few thousand items, the performance is abysmal. I've tested with 918 items, for which a total of 40 attachments were extracted, with the total size of 15 MB. The slowest part is actually not the attachment extraction, but the individual item extraction. It took 20 minutes and 43 seconds in a recent Debian install running under WSL2.
As a comparison the whole account export started from the 1PW client (1PUX) took only 5 seconds.
Is there any way of programmatically exporting data in bulk, like the 1PW client built-in export (1PUX) functionality? If not, then is it even on the backlog?