{"id":33185710,"url":"https://github.com/windowsrefund/safe","last_synced_at":"2025-11-22T04:01:32.545Z","repository":{"id":25369424,"uuid":"28797404","full_name":"windowsrefund/safe","owner":"windowsrefund","description":null,"archived":false,"fork":false,"pushed_at":"2019-09-11T17:22:33.000Z","size":24,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-12T22:27:37.346Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/windowsrefund.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-05T04:30:22.000Z","updated_at":"2025-02-16T22:11:35.000Z","dependencies_parsed_at":"2022-08-24T04:31:25.588Z","dependency_job_id":null,"html_url":"https://github.com/windowsrefund/safe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/windowsrefund/safe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windowsrefund%2Fsafe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windowsrefund%2Fsafe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windowsrefund%2Fsafe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windowsrefund%2Fsafe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/windowsrefund","download_url":"https://codeload.github.com/windowsrefund/safe/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windowsrefund%2Fsafe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285731803,"owners_count":27222214,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-22T02:00:05.934Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-11-16T05:00:20.099Z","updated_at":"2025-11-22T04:01:32.536Z","avatar_url":"https://github.com/windowsrefund.png","language":"Shell","funding_links":[],"categories":["\u003ca name=\"password-manager\"\u003e\u003c/a\u003ePassword managers"],"sub_categories":[],"readme":"##### Overview\n\nA wrapper to act as a safe. By default, the safe will look for a ~/safe\ndirectory and produce ~/safe.tar.gz.asc\n\n##### Assumptions\n\n* Your [GnuPG](http://gnupg.org) config is sane\n\n##### Usage\n\n  ./safe.sh -h\n\n##### Configuration\n\nThe following variables are supported. These can be maintained in ~/.saferc or\nany usual environment file such as ~/.bashrc\n\nIf you want to create a safe of /my/stuff, create a ~/.saferc with:\n\nSOURCE_DIR - This directory will be encrypted into a safe. For example, setting this to /my/stuff will result in /my/stuff.tar.gz.asc being created.\n\nWhen not defined, SOURCE_DIR will default to ~/safe\n\nMY_GPG_KEY -  The gpg key ID used for encryption\n\nWhen not set, the script will fall back to using `whoami`. This assumes your\nkey can be identified using the id you are logged in with.\n\nSAFE_BACKUP_HOST - A host to scp backups to. It is always best to maintain a\na definition of this host in your ~/.ssh/config in order to specify details\nsuch as a non-standard port, etc.\n\nSAFE_AUTO_BACKUP - Setting this to 1 will trigger a backup any time the\ncontents of the safe are modified\n\n##### Examples (using default configuration and my cat's account)\n\n    $ pwd\n    /home/evil\n    $ ls safe*\n    ls: cannot access safe*: No such file or directory\n    $ mkdir safe\n    $ for i in $(seq 3); do echo \"secret number $i\" \u003e safe/file$i; done\n    $ safe.sh -C\n    $ ls safe*\n    safe.tar.gz.asc\n    $ safe.sh -l\n    safe/\n    safe/file1\n    safe/file2\n    safe/file3\n    $ safe.sh -o file3\n    secret number 3\n    $ safe.sh -r file1\n    $ safe.sh -l\n    safe/\n    safe/file2\n    safe/file3\n    $ \u003e /tmp/foobar\n    $ safe.sh -a /tmp/foobar\n    $ test -f /tmp/foobar || echo gone\n    gone\n    $ safe.sh -l\n    safe/\n    safe/file2\n    safe/file3\n    safe/foobar\n    $ \u003e ~/please_do_not_shred_me\n    $ safe.sh -A ~/please_do_not_shred_me\n    $ safe.sh -l\n    safe/\n    safe/file2\n    safe/file3\n    safe/foobar\n    safe/please_do_not_shred_me\n    $ test -f ~/please_do_not_shred_me \u0026\u0026 echo still here\n    still here\n\nSee -h for other features like editing, backups, and comparing timestamps\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindowsrefund%2Fsafe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwindowsrefund%2Fsafe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindowsrefund%2Fsafe/lists"}