Bulk export and import between 1Password accounts
I need to move the contents of a vault in my personal 1Password account into my new team account.
I've exported all items from my personal account like so:
op list items --vault="Work" > workitems.json
I'm stuck trying to import these into the team account now though. Can items only be created manually 1 by 1?
1Password Version: op0.5.3
Extension Version: Not Provided
OS Version: Debian testing buster
Sync Type: Not Provided
Comments
-
@lmcm
op list items
won't give you enough information to create a new item. It only outputs the overview of the item (the majority of the information is in the details). You'll need to write a script that takes all of the items inworkitems.json
and callsop get item [uuid]
with the itemUuid from each item. Then, you'd need to use the correct template fromop get template
to construct a new item to pass intoop create item
with the new account.As you can see, this is sub-optimal. We're actively working on overhauling the item creation flow to make this much better. For now, I would highly recommend that you use one of our desktop apps to perform the migration by signing into both accounts and just selecting all of the items and dragging them into the new Teams account personal vault.
0 -
Thank you! I didn't have a good look at the output of
op list items
, silly me.On Linux sadly so no desktop apps, but this shouldn't be too hard now you've told me what to do. :chuffed:
0 -
(Managed to post the above comment twice. :blush:)
0 -
Alright :) Please let me know how things go, and feel free to post any scripts you come up with so others can benefit as well :)
0