Copy Accounts between different p database files - binbash23/p GitHub Wiki

If you use different database files for your accounts i.e. one database called p.db for your private accounts and another database file called work.db, you can easy copy/transfer accounts between them.

Maybe you want to transfer a connector account for your webdav merge target from the p.db to work.db to be able to use the connector also from the work.db database.

First open the p.db and search the webdav connector account uuid:

[private] pshell> /webdav
Searching for *webdav* in 21 accounts:

UUID            : b2941192-bbdb-af1d-9762-78787a41f3
Name            : webdav connector
URL             : https://webdav_hoster.com/p
Loginname       : peter
Password        : ***
Type            : Connector
Connectortype   : webdav

Found 1 result.
[private] pshell>

Then export the connector account to a csv file:

[private] pshell> export b2941192-bbdb-af1d-9762-78787a41f3
WARNING: You are going to export accounts to an unencrypted csv file!!!
Are you really sure you want to do this?
Enter "yes" to continue: yes
Please enter master password: ****
1 account(s) exported to file: C:\Users\peterparker\p\export.csv
[private] pshell>

Next open the work.db database and import the "export.csv" file with the connector account:

[private] pshell> open work.db
Enter database password: *******
[work database] pshell> import export.csv
Inserting account name : webdav connector
Rows inserted     : 1
Rows not inserted : 0
[work database] pshell>

Don't forget to delete the plain text "export.csv" file (if you use linux you have to execute "!rm export.csv"):

[work database] pshell> !del export.csv