[pass] Exporting data from password store

Lucas Hoffmann l-m-h at web.de
Mon Jun 22 11:33:28 CEST 2015

It is a good idea to store the password encrypted, even when backing up.
So as the password store is only a folder with files you can use cp(1)
or rsync(1) or tar(1) to backup and restore the data (best as a whole,
then you will have no problems if you reencrypt).

If you want to reencrypt files in your password store, read the man page
about `pass init`.

If you have two folders with a old and  new password store with
possiblely different gpg ids you can transvere every single password
that you want like this:

  PASSWORD_STORE_DIR=~/old-store pass show old/password/name | PASSWORD_STORE_DIR=~/new-store pass insert --multiline new/password/name

Have fun,

On Mon, Jun 22, 2015 at 05:06:27PM +0800, Pickfire wrote:
> On Mon, Jun 22, 2015 at 09:59:04AM +0200, Lenz Weber wrote:
> >Without answering the question "where do you want to export it to?" this
> >can not really be answered.
> >
> >Generally: your password data is stored in gpg-encrypted flat files that
> >can be manually decrypted and opened in any editor.
> >
> >If you want to import it to another password manager application, it
> >would either need to support importing from password-store or from a
> >simple text file format.
> >
> >In the latter case, a simple shell script like this oneliner (I'm sure
> >this is possible more beautiful, this is rather crude):
> > find ~/.password-store -iname \*.gpg | sed 's,.*\.password-store/,,' |
> >sed 's,\.gpg,,' | xargs -n1 -I{} bash -c "echo {}; cat
> >~/.password-store/{}.gpg | gpg -d; echo "
> >
> >could help you export your data.
> I want to export data for backup and import from `pass` next time and
> I want to change the gpg key for pass.
> I hope that the README shows the way to export `pass` data and not only
> how to import it.
> --
> _____________________________________
> < Do what you like, like what you do. >
> -------------------------------------
>        \   ^__^
>         \  (oo)\_______
>            (__)\       )\/\
>                ||----w |
>                ||     ||
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20150622/242669c8/attachment.asc>

More information about the Password-Store mailing list