{"id":21531512,"url":"https://github.com/aguslr/docker-dropbear-backup","last_synced_at":"2026-02-07T03:01:49.452Z","repository":{"id":158204244,"uuid":"633907333","full_name":"aguslr/docker-dropbear-backup","owner":"aguslr","description":"Set up Dropbear SSH server to allow remote backups using Borg, rsync or sftp-server","archived":false,"fork":false,"pushed_at":"2025-06-06T20:55:04.000Z","size":55,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-24T07:55:58.584Z","etag":null,"topics":["borg","borgbackup","docker","dropbear","podman","rsync"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":false,"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/aguslr.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":"2023-04-28T14:56:28.000Z","updated_at":"2025-06-06T20:55:06.000Z","dependencies_parsed_at":"2024-03-23T13:47:08.041Z","dependency_job_id":"d73ec642-edce-4777-98ae-ea7e42833000","html_url":"https://github.com/aguslr/docker-dropbear-backup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aguslr/docker-dropbear-backup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aguslr%2Fdocker-dropbear-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aguslr%2Fdocker-dropbear-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aguslr%2Fdocker-dropbear-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aguslr%2Fdocker-dropbear-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aguslr","download_url":"https://codeload.github.com/aguslr/docker-dropbear-backup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aguslr%2Fdocker-dropbear-backup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29185112,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T00:44:15.062Z","status":"online","status_checked_at":"2026-02-07T02:00:07.217Z","response_time":63,"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":["borg","borgbackup","docker","dropbear","podman","rsync"],"created_at":"2024-11-24T02:14:37.411Z","updated_at":"2026-02-07T03:01:49.438Z","avatar_url":"https://github.com/aguslr.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[aguslr/docker-dropbear-backup][1]\n==================================\n\n[![docker-pulls](https://img.shields.io/docker/pulls/aguslr/dropbear-backup)](https://hub.docker.com/r/aguslr/dropbear-backup) [![image-size](https://img.shields.io/docker/image-size/aguslr/dropbear-backup/latest)](https://hub.docker.com/r/aguslr/dropbear-backup)\n\n\nThis *Docker* image sets up *Dropbear* inside a docker container that allows\nremote backups using *Borg*, *rsync* or *sftp-server*\n\n\u003e **[Dropbear][2]** is a relatively small SSH server that runs on a variety of\n\u003e unix platforms.\n\n\u003e **[Borg][3]** is a deduplicating backup software for various Unix-like\n\u003e operating systems.\n\n\u003e **[rsync][4]** is a utility for efficiently transferring and synchronizing\n\u003e files between a computer and a storage drive and across networked computers.\n\n\u003e **[sftp-server][5]** is a program that speaks the server side of SFTP protocol\n\u003e to stdout and expects client requests from stdin.\n\n\nInstallation\n------------\n\nTo use *docker-dropbear-backup*, follow these steps:\n\n1. Clone and start the container:\n\n       docker run -p 2222:22 \\\n         -e BACKUP_USER=bob \\\n         -e BACKUP_UID=1000 \\\n         -v \"${PWD}\"/dropbear:/etc/dropbear \\\n         -v \"${PWD}\"/backups:/home/bob \\\n         docker.io/aguslr/dropbear-backup:latest\n\n2. Configure your backup software to connect to your *Dropbear* server's IP\n   address on port `2222` with user `BACKUP_USER`.\n\n\n### Variables\n\nThe image is configured using environment variables passed at runtime. All these\nvariables are prefixed by `BACKUP_`.\n\n| Variable | Function                           | Default   | Required |\n| :------- | :--------------------------------- | :-------- | -------- |\n| `USER`   | New user that will own the backups | `rbackup` | N        |\n| `UID`    | UID of the new user                | 11000     | N        |\n\n\n#### Authorized keys file\n\nTo allow certain users to use the server for backup, we can copy the SSH keys\ninto the `authorized_keys` file (e. g. `\"${PWD}\"/backups/.ssh/authorized_keys`)\nwith the format:\n\n    no-agent-forwarding,no-port-forwarding,no-pty,no-X11-forwarding SSH_KEY USER@HOST\n\n\nBuild locally\n-------------\n\nInstead of pulling the image from a remote repository, you can build it locally:\n\n1. Clone the repository:\n\n       git clone https://github.com/aguslr/docker-dropbear-backup.git\n\n2. Change into the newly created directory and use `docker-compose` to build and\n   launch the container:\n\n       cd docker-dropbear-backup \u0026\u0026 docker-compose up --build -d\n\n\n[1]: https://github.com/aguslr/docker-dropbear-backup\n[2]: https://matt.ucc.asn.au/dropbear/dropbear.html\n[3]: https://borgbackup.org/\n[4]: https://rsync.samba.org/\n[5]: https://man.openbsd.org/sftp-server.8\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faguslr%2Fdocker-dropbear-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faguslr%2Fdocker-dropbear-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faguslr%2Fdocker-dropbear-backup/lists"}