{"id":16994741,"url":"https://github.com/znerol/pfsense-crypt-backup","last_synced_at":"2026-05-19T15:11:09.210Z","repository":{"id":136255899,"uuid":"198181588","full_name":"znerol/pfsense-crypt-backup","owner":"znerol","description":"Write encrypted backup file and metadata as JSON to stdout","archived":false,"fork":false,"pushed_at":"2019-07-22T08:35:53.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-27T06:28:19.394Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/znerol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-07-22T08:35:40.000Z","updated_at":"2019-07-22T08:35:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"0c25be5d-b1fd-4af0-9333-ade8fa78381b","html_url":"https://github.com/znerol/pfsense-crypt-backup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znerol%2Fpfsense-crypt-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znerol%2Fpfsense-crypt-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znerol%2Fpfsense-crypt-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znerol%2Fpfsense-crypt-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/znerol","download_url":"https://codeload.github.com/znerol/pfsense-crypt-backup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244913005,"owners_count":20530769,"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","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":"2024-10-14T03:46:24.880Z","updated_at":"2026-05-19T15:10:59.198Z","avatar_url":"https://github.com/znerol.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pfsense-crypt-backup\n\nWrite encrypted backup file and metadata as JSON to stdout.\n\n## Installation\n\n1. Copy `crypt-backup.php` to `/usr/local/bin/crypt-backup.php`.\n2. `chmod +x /usr/local/bin/crypt-backup.php\n\n## Usage\n\nLocal:\n\n```\n/usr/local/bin/crypt-backup.php \"my super secret passphrase\" \u003e pfsense-config.json\n```\n\nRemote:\n\n```\nssh root@pfsense /usr/local/bin/crypt-backup.php \"my super secret passphrase\" \u003e pfsense-config.json\n```\n\n## Tips\n\n* Use `jq` to extract encrypted `config.xml` from JSON:\n  ```\n  jq -r \".content\" pfsense-config.json \u003e config.xml\n  ```\n* Use `jq` to extract backup metadata from JSON:\n  ```\n  jq \"del(.content)\" pfsense-config.json \u003e meta.json\n  ```\n* Add restricted SSH key to pfsense admin account which is only capable of pulling an encrypted backup.\n  ```\n  no-agent-forwarding,no-port-forwarding,no-pty,no-X11-forwarding,command=\"/usr/local/bin/crypt-backup.php 'super secret passphrase'\" ssh-rsa AAAAB3[...]\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fznerol%2Fpfsense-crypt-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fznerol%2Fpfsense-crypt-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fznerol%2Fpfsense-crypt-backup/lists"}