Exporting and importing accounts - binbash23/p GitHub Wiki

It is possible to export and import your accounts.

The easiest way is to use the importcsv and export2csv pshell commands.

[p.db] pshell> export2csv
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: /home/peter/p/export.csv
[p.db] pshell> 

Now you can use the unencrypted csv file as you need. Maybe you want to import a lot of accounts then you can use the export csv file as a template and add your account line after line into it and then import them all together into the encrypted p database. If you add new accounts into the csv file, make sure that you leave the uuid column empty. When importing new accounts, new uuid's will be created automatically.

Example: Import a file named "export.csv" into the p database.

[p.db] pshell> importcsv export.csv
Inserting account name : email account
New account added: [UUID c8a445ed-edd8-49f0-9189-903212917762]
Rows inserted     : 1
Rows not inserted : 0
[p.db] pshell>