{"id":19258956,"url":"https://github.com/jz543fm/pass-backup","last_synced_at":"2026-05-17T10:35:44.916Z","repository":{"id":249688971,"uuid":"832281019","full_name":"jz543fm/pass-backup","owner":"jz543fm","description":"An extension for pass (the standard Unix password manager) to easily create backups of the password store with the usage of bash scripts","archived":false,"fork":false,"pushed_at":"2024-07-22T19:17:49.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T18:17:06.678Z","etag":null,"topics":["backup-script","backup-tool","bash","bash-scripting","passwords","restore"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jz543fm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-22T17:35:23.000Z","updated_at":"2024-07-26T16:48:28.000Z","dependencies_parsed_at":"2024-07-22T19:51:17.303Z","dependency_job_id":null,"html_url":"https://github.com/jz543fm/pass-backup","commit_stats":null,"previous_names":["jz543fm/pass-backup"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jz543fm/pass-backup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jz543fm%2Fpass-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jz543fm%2Fpass-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jz543fm%2Fpass-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jz543fm%2Fpass-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jz543fm","download_url":"https://codeload.github.com/jz543fm/pass-backup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jz543fm%2Fpass-backup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33135098,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backup-script","backup-tool","bash","bash-scripting","passwords","restore"],"created_at":"2024-11-09T19:14:53.989Z","updated_at":"2026-05-17T10:35:44.899Z","avatar_url":"https://github.com/jz543fm.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pass Backup\r\n\r\nI recommend to use passphrase with the GPG keys\r\n\r\nBackup scripts for [pass, the standard unix password manager](https://www.passwordstore.org) tool to manage your passwords\r\n\r\nFast tool how to back up your passwords with simple Bash scripts\r\n\r\n[pass man](https://git.zx2c4.com/password-store/about/)\r\n\r\n## Usage\r\n\r\nYou can use this scripts from this repository otherwise you can move them to the `/usr/local/bin` with the command:\r\n\r\n```bash\r\ncp -R *.sh /usr/local/bin/\r\n```\r\n\r\n### Pass Git Init\r\n\r\nFirstly 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: \r\n\r\n\r\n```bash\r\n./pass-init.sh\r\n```\r\n\r\n## Export and back up GPG key\r\n\r\nSecondly 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\r\n\r\n```bash\r\n./gpg-export.sh #Exports your private GPG key to the file ~/.password-store/my-private-key.asc\r\n./pass-init.sh #Commits the file ~/.password-store/my-private-key.asc to the yours git repository\r\n```\r\n\r\n### Restore GPG keys and passwords\r\n\r\nFor 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\r\n\r\n```bash\r\n./pass-restore.sh\r\n```\r\n\r\n### Remove git remote\r\n\r\nFor 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`\r\n\r\n```bash\r\npass git remote remove origin\r\n```\r\n\r\n## FAQ\r\n\r\n### What if passwords changes?\r\n\r\nIf passwords changes and you want to commit the changes to the proper git repository use command below:\r\n\r\n```bash\r\npass git push\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjz543fm%2Fpass-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjz543fm%2Fpass-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjz543fm%2Fpass-backup/lists"}