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,
Lucas
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 |
> || ||
signature.asc
Description: PGP signature
_______________________________________________ Password-Store mailing list [email protected] http://lists.zx2c4.com/mailman/listinfo/password-store
