Re: [pass] Exporting data from password store

2015-06-23 Thread Pickfire

On Mon, Jun 22, 2015 at 09:27:48AM +, Dahlberg, David wrote:

Am Montag, den 22.06.2015, 17:06 +0800 schrieb Pickfire:


I want to export data for backup


Just backup your $HOME/.passwordstore directory.


and import from `pass` next time and


Copy the backup back into place.


I want to change the gpg key for pass.


$ pass init key-id


I hope that the README shows the way to export `pass` data and not
only
how to import it.


The documentation explains quite well, how pass is working and where
the files are stored. The format is dead easy, which is IMHO one of the
great features of the password store.

Even if Jason would suddenly decide to discontinue the project and even
if all existing copies would suddenly magically disappear. Or if all
you have available is a strange, unsupported platform like IOS,
Android or Windows. You will always be able to read edit and manage
your keys by hand, as long as you have (a) file system and (b) an
OpenPGP implementation.



Thanks, I didn't know that `pass init` can reencrypt the data.

--
_
 Do what you like, like what you do. 
-
   \   ^__^
\  (oo)\___
   (__)\   )\/\
   ||w |
   || ||


signature.asc
Description: PGP signature
___
Password-Store mailing list
Password-Store@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/password-store


Re: [pass] Exporting data from password store

2015-06-22 Thread Diego Depaoli
You may also take a look at this page, section 'backups'
http://blog.sanctum.geek.nz/linux-crypto-passwords/

Regards

2015-06-22 11:06 GMT+02:00 Pickfire pickf...@riseup.net:

 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 |
|| ||

 ___
 Password-Store mailing list
 Password-Store@lists.zx2c4.com
 http://lists.zx2c4.com/mailman/listinfo/password-store




-- 
Diego Depaoli
___
Password-Store mailing list
Password-Store@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/password-store


Re: [pass] Exporting data from password store

2015-06-22 Thread Lenz Weber
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.



Am 21.06.2015 um 16:44 schrieb Pickfire:
 I know that I can import data from password store. How do you export
 data from password store?
 
___
Password-Store mailing list
Password-Store@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/password-store


Re: [pass] Exporting data from password store

2015-06-22 Thread Lucas Hoffmann
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
Password-Store@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/password-store