{"id":34175198,"url":"https://github.com/maxisme/mega-backup","last_synced_at":"2026-05-30T17:31:07.954Z","repository":{"id":79451880,"uuid":"267900517","full_name":"maxisme/mega-backup","owner":"maxisme","description":null,"archived":false,"fork":false,"pushed_at":"2020-06-22T09:59:54.000Z","size":76,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-18T09:28:36.652Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/maxisme.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":"2020-05-29T16:09:13.000Z","updated_at":"2020-06-09T11:42:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"41311fa1-e771-4bd7-9658-afbc80e23ba6","html_url":"https://github.com/maxisme/mega-backup","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/maxisme/mega-backup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxisme%2Fmega-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxisme%2Fmega-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxisme%2Fmega-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxisme%2Fmega-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxisme","download_url":"https://codeload.github.com/maxisme/mega-backup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxisme%2Fmega-backup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33703064,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"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-12-15T12:06:10.915Z","updated_at":"2026-05-30T17:31:07.920Z","avatar_url":"https://github.com/maxisme.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mega-backup\n\n## Setup\n1. Add cron job to your liking:\n    ```\n    */20 * * * * python backup-servers.py\n    0 * * * * backup-servers.sh\n    ```\n    \n2. Add servers to backup in the `servers.json`:\n    ```json\n    {\n      \"servers\": {\n        \"server-name\": {\n          \"host\": \"root@1.2.3.4\",\n          \"ssh-port\": 22,\n\u003c\u003c\u003c\u003c\u003c\u003c\u003c HEAD\n          \"exclude-dirs\": []\n=======\n          \"exclude-dirs\": [],\n          \"mega\": true\n\u003e\u003e\u003e\u003e\u003e\u003e\u003e a01344162fc3824600d92d18f55a24bfdc0ab114\n        }\n      },\n      \"exclude-dirs\": [\n        \"/dev/*\",\n        \"/proc/*\",\n        \"/sys/*\",\n        \"/tmp/*\",\n        \"/run/*\",\n        \"/mnt/*\",\n        \"/media/*\",\n        \"/lost+found/*\",\n        \"/var/log/*\",\n        \"/var/lib/docker/*\"\n      ],\n      \"encryption-key\": \"CHANGE ME\"\n    }\n    ```\n3. An example docker-compose.yml may look like this:\n    ```yaml\n    version: '3.1'\n    services:\n      backup:\n        build: .\n        environment:\n          - HOST=${HOST:?err}\n          - CREDENTIALS=${CREDENTIALS:?err}\n          - CRON=0 */12 * * *\n        volumes:\n          - \"./servers.json:/app/servers.json\"\n          - \"/root/.ssh:/root/.ssh\"\n          - \"./backup/:/backup/\"\n    ```\n   \n## Decrypting backup\nTo decrypt backup simply run inside the `cmd` directory:\n```\n$ go run . /path/to/file key\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxisme%2Fmega-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxisme%2Fmega-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxisme%2Fmega-backup/lists"}