https://github.com/jz543fm/pass-backup
An extension for pass (the standard Unix password manager) to easily create backups of the password store with the usage of bash scripts
https://github.com/jz543fm/pass-backup
backup-script backup-tool bash bash-scripting passwords restore
Last synced: about 1 month ago
JSON representation
An extension for pass (the standard Unix password manager) to easily create backups of the password store with the usage of bash scripts
- Host: GitHub
- URL: https://github.com/jz543fm/pass-backup
- Owner: jz543fm
- Created: 2024-07-22T17:35:23.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-22T19:17:49.000Z (almost 2 years ago)
- Last Synced: 2025-02-23T18:17:06.678Z (over 1 year ago)
- Topics: backup-script, backup-tool, bash, bash-scripting, passwords, restore
- Language: Shell
- Homepage:
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pass Backup
I recommend to use passphrase with the GPG keys
Backup scripts for [pass, the standard unix password manager](https://www.passwordstore.org) tool to manage your passwords
Fast tool how to back up your passwords with simple Bash scripts
[pass man](https://git.zx2c4.com/password-store/about/)
## Usage
You can use this scripts from this repository otherwise you can move them to the `/usr/local/bin` with the command:
```bash
cp -R *.sh /usr/local/bin/
```
### Pass Git Init
Firstly you need to create a new git repository where you want to back up (gitlab,github), create a new private git repository, without README.md afterwards copy the proper URL of the git repository then run the bash script:
```bash
./pass-init.sh
```
## Export and back up GPG key
Secondly for exporting and backuping your private GPG key throught git repository use bash script below, then you need to rerun script `pass-init.sh` to commit to your git repository yours private GPG key that you have just exported
```bash
./gpg-export.sh #Exports your private GPG key to the file ~/.password-store/my-private-key.asc
./pass-init.sh #Commits the file ~/.password-store/my-private-key.asc to the yours git repository
```
### Restore GPG keys and passwords
For the restoring use the bash script `pass-restore.sh`, this will restore your git repository that contains back up for the pass, firstly you clone the repository and afterwards you restore your GPG keys, that is used for restoring your passwords
```bash
./pass-restore.sh
```
### Remove git remote
For removing git remove remote you need to use command bellow, then if you want to backup to second git repository you can reuse the script `pass-init.sh`
```bash
pass git remote remove origin
```
## FAQ
### What if passwords changes?
If passwords changes and you want to commit the changes to the proper git repository use command below:
```bash
pass git push
```