- >>brew install pass
- >>pass init "Name of your store string"
- >>gpg --full-generate-key
- >>gpg --list-keys
- Now copy the name of the relevant key
- >>pass init ajdfljdalfjalfjladfalsdfjljflafihei8ytaio
- pass insert test
- Pass will prompt the test passwords, give them
- >>pass test
- Then GPG will ask for the password.
Pass: Export to other systems
"The thing that we can do is first of all set up a github, gitlab, or whatever repo with
passpassword database. For that we'll have to installpass-git-helper, it's in the AUR if you're on Arch. Then we'll set up a git repo:pass git initpass git remote add origin <url>pass git add -Apass git commit -m "initial commit"pass git push -u origin masterThis will push all passwords to git repo, make sure the git repo is private.
Now we'll back up the GPG key:
gpg --export-secret-keys $ID > my-private-key.ascCopy the file
my-private-key.ascto a USB drive or whatever storage device you have before wiping disk.To restore the passwords again, copy the private key file to the new system and of course, don't forget the passphrase of GPG key and then run these commands:
gpg --import my-private-key.ascgit clone <url> ~/.password-store/
See this thread: https://superuser.com/questions/1722240/how-to-backup-passwords-from-pass
No comments:
Post a Comment