{"id":16227993,"url":"https://github.com/dries007/serverbackups","last_synced_at":"2026-05-16T18:32:32.508Z","repository":{"id":67724138,"uuid":"236598048","full_name":"dries007/ServerBackups","owner":"dries007","description":"Simple, but capable, backup script intended for use on servers.","archived":false,"fork":false,"pushed_at":"2020-01-27T21:22:41.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-08T10:46:00.880Z","etag":null,"topics":["backup","backup-cli","backup-script","bash","borg","borgbackup","server"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dries007.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":"2020-01-27T21:22:35.000Z","updated_at":"2020-01-27T21:25:30.000Z","dependencies_parsed_at":"2024-04-19T08:48:12.154Z","dependency_job_id":null,"html_url":"https://github.com/dries007/ServerBackups","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dries007/ServerBackups","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dries007%2FServerBackups","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dries007%2FServerBackups/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dries007%2FServerBackups/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dries007%2FServerBackups/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dries007","download_url":"https://codeload.github.com/dries007/ServerBackups/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dries007%2FServerBackups/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33114187,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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","backup-cli","backup-script","bash","borg","borgbackup","server"],"created_at":"2024-10-10T12:54:19.516Z","updated_at":"2026-05-16T18:32:32.493Z","avatar_url":"https://github.com/dries007.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Server Backups\n\nBackup script \u0026 system for my server.\n\nIt comes with a free 100GB storage box that I use for backups. \n\nBased on [Hetzner's guide](https://community.hetzner.com/tutorials/install-and-configure-borgbackup).\n\nTL;DR: The backup.sh script is a DIY solution that makes a bunch of pattern files by running `scripts/*`.\nThose patterns are fed to Borg which does compression and deduplication.\n\nFeel free to fork and use as you see fit. Released under The Unlicense. \n\n## Setup\n\nSome important settings in Hetznet control panel:\n\n- **Disable external access**\n- Enable SSH support (for Borg)\n\nAdd an ssh config entry with the correct hostname, user and ssh key.\n\nThe script assumes the ssh connection can be setup using `backups` as host.\nThe path is set to `./borg/\u003chostname/`.\n\nCreate a `secrets.env` file (with `chown 600`!) next in this folder. Example contents:\n\n```dotenv\nBORG_PASSPHRASE=aHopefullyLongAndComplexPasphraseThatYouBackedUpOffline\nPOSTGRES_USER=postgres\nMYSQL_USER=backup\nMYSQL_PASS=thePassForAHopefullyLimitedAccount\nEMAIL_RECIPIENTS=foo@bar.tld\n```\n\n## Scripts\n\nAll executables inside [scripts](./scripts) are run with a 2 minute timeout.\n\nThe scripts should assume their CWD is a tmp folder.\nThere is no resolution for conflicting filenames, so use sensibly long filenames.\n\nThe script must write compliant patterns to its first argument (a file).\n\nFor the format, check out `man borg-patterns` and/or \u003chttps://borgbackup.readthedocs.io/en/stable/usage/help.html\u003e\n\n## Automation\n\nAutomate the main script with cron.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdries007%2Fserverbackups","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdries007%2Fserverbackups","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdries007%2Fserverbackups/lists"}