{"id":28391974,"url":"https://github.com/beuluis/restic","last_synced_at":"2026-04-14T06:33:47.483Z","repository":{"id":46118599,"uuid":"291819098","full_name":"beuluis/restic","owner":"beuluis","description":"Docker setup for restic.","archived":false,"fork":false,"pushed_at":"2023-12-15T20:24:03.000Z","size":34,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-06-25T10:49:31.738Z","etag":null,"topics":["docker","docker-compose","docker-setup","restic"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/beuluis.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}},"created_at":"2020-08-31T20:35:52.000Z","updated_at":"2022-07-29T01:06:52.000Z","dependencies_parsed_at":"2023-12-15T22:02:29.886Z","dependency_job_id":null,"html_url":"https://github.com/beuluis/restic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/beuluis/restic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beuluis%2Frestic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beuluis%2Frestic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beuluis%2Frestic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beuluis%2Frestic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beuluis","download_url":"https://codeload.github.com/beuluis/restic/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beuluis%2Frestic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31785677,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: 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":["docker","docker-compose","docker-setup","restic"],"created_at":"2025-05-31T10:39:20.399Z","updated_at":"2026-04-14T06:33:47.467Z","avatar_url":"https://github.com/beuluis.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n\n\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://restic.readthedocs.io/en/stable/_static/logo.png\" alt=\"Logo\" height=\"60\"\u003e\n\n  \u003ch3 align=\"center\"\u003erestic\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n    Docker setup for restic\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    ·\n    \u003ca href=\"https://github.com/beuluis/restic/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/beuluis/restic/issues\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n\n## About The Project\n\nSmall docker setup for restic. It will backup all your docker volumes.\n\n\u003c!-- GETTING STARTED --\u003e\n\n## Getting Started Develop\n\nTo get a local copy up and running follow these simple steps.\n\n### Prerequisites\n\n- [Docker](https://docs.docker.com/get-docker/)\n- [Docker Compose](https://docs.docker.com/compose/install/)\n\n### Installation\n\n1. Clone the repo\n\n```sh\ngit clone https://github.com/beuluis/restic.git\n```\n\n2. Start docker-compose\n\n```sh\ndocker-compose up --build\n```\n\n### Customization\n\n1. Create a `.env` file\n\n```sh\ntouch .env\n```\n\n2. Overwrite variables as you like (format: `{variable name}={variable value}`)\n\n| Variable                       | Description                                                                                     | Default value    | Required |\n| ------------------------------ | ----------------------------------------------------------------------------------------------- | ---------------- | -------- |\n| `RESTIC_BACKUP_CRON`           | GoCron to run backup                                                                            | `0 30 3 * * *`   | false    |\n| `RESTIC_RUN_ON_STARTUP_BACKUP` | Run backup on startup                                                                           | `true`           | false    |\n| `RESTIC_BACKUP_TAG`            | Tag for backup                                                                                  | `docker-volumes` | false    |\n| `RESTIC_BACKUP_HOST`           | Host name for backup                                                                            | `docker`         | false    |\n| `RESTIC_KEEP_LAST`             | Never delete the `n` last (most recent) snapshots                                               | `30`             | false    |\n| `RESTIC_KEEP_DAILY`            | For the last `n` days which have one or more snapshots, only keep the last one for that day     | `7`              | false    |\n| `RESTIC_KEEP_WEEKLY`           | For the last `n` weeks which have one or more snapshots, only keep the last one for that week   | `5`              | false    |\n| `RESTIC_KEEP_MONTHLY`          | For the last `n` months which have one or more snapshots, only keep the last one for that month | `12`             | false    |\n| `RESTIC_TZ`                    | Timezone                                                                                        | `Europe/Berlin`  | false    |\n| `RESTIC_REPOSITORY`            | Repository see [Restic Docs](https://restic.readthedocs.io/)                                    | none             | true     |\n| `RESTIC_PASSWORD`              | Restic password                                                                                 | none             | true     |\n| `AWS_ACCESS_KEY_ID`            | AWS key id                                                                                      | none             | true     |\n| `AWS_SECRET_ACCESS_KEY`        | AWS secret key                                                                                  | none             | true     |\n| `NOTIFY_TO`                    | Email to notify                                                                                 | none             | true     |\n| `NOTIFY_FROM`                  | Sender email                                                                                    | none             | true     |\n| `NOTIFY_SERVER`                | Email server                                                                                    | none             | true     |\n| `NOTIFY_PORT`                  | Server port                                                                                     | `587`            | false    |\n| `NOTIFY_USER`                  | Email user                                                                                      | none             | true     |\n| `NOTIFY_PASSWORD`              | Email password                                                                                  | none             | true     |\n\n## Getting Started Production\n\nTo get a copy up and running follow these simple steps.\n\n### Prerequisites\n\n- [Docker](https://docs.docker.com/get-docker/)\n- [Docker Compose](https://docs.docker.com/compose/install/)\n- [Nginx by me](https://github.com/beuluis/nginx)\n\n### Installation\n\n1. Clone the repo\n\n```sh\ngit clone https://github.com/beuluis/restic.git --branch master\n```\n\n2. Create a `.env.prod` file\n\n```sh\ntouch .env.prod\n```\n\n3. Overwrite all variables marked under Customization as required\n4. Start docker-compose\n\n```sh\ndocker-compose --env-file ./.env.prod -f docker-compose.yml -f docker-compose.production.yml up -d\n```\n\n### Customization\n\n1. Create a `.env.prod` file\n\n```sh\ntouch .env.prod\n```\n\n2. Overwrite variables as you like (format: `{variable name}={variable value}`)\n\n| Variable                       | Description                                                                                     | Default value    | Required |\n| ------------------------------ | ----------------------------------------------------------------------------------------------- | ---------------- | -------- |\n| `RESTIC_BACKUP_CRON`           | GoCron to run backup                                                                            | `0 30 3 * * *`   | false    |\n| `RESTIC_RUN_ON_STARTUP_BACKUP` | Run backup on startup                                                                           | `true`           | false    |\n| `RESTIC_BACKUP_TAG`            | Tag for backup                                                                                  | `docker-volumes` | false    |\n| `RESTIC_KEEP_LAST`             | Never delete the `n` last (most recent) snapshots                                               | `10`             | false    |\n| `RESTIC_KEEP_DAILY`            | For the last `n` days which have one or more snapshots, only keep the last one for that day     | `7`              | false    |\n| `RESTIC_KEEP_WEEKLY`           | For the last `n` weeks which have one or more snapshots, only keep the last one for that week   | `5`              | false    |\n| `RESTIC_KEEP_MONTHLY`          | For the last `n` months which have one or more snapshots, only keep the last one for that month | `12`             | false    |\n| `RESTIC_TZ`                    | Timezone                                                                                        | `Europe/Berlin`  | false    |\n| `RESTIC_REPOSITORY`            | Repository see [Restic Docs](https://restic.readthedocs.io/)                                    | none             | true     |\n| `RESTIC_PASSWORD`              | Restic password                                                                                 | none             | true     |\n| `NOTIFY_TO`                    | Email to notify                                                                                 | none             | true     |\n| `NOTIFY_FROM`                  | Sender email                                                                                    | none             | true     |\n| `NOTIFY_SERVER`                | Email server                                                                                    | none             | true     |\n| `NOTIFY_PORT`                  | Server port                                                                                     | `587`            | false    |\n| `NOTIFY_USER`                  | Email user                                                                                      | none             | true     |\n| `NOTIFY_PASSWORD`              | Email password                                                                                  | none             | true     |\n\n\u003c!-- CONTRIBUTING --\u003e\n\n## Contributing\n\nContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\u003c!-- CONTACT --\u003e\n\n## Contact\n\nLuis Beu - me@luisbeu.de\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\u003c!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --\u003e\n\n[contributors-shield]: https://img.shields.io/github/contributors/beuluis/restic.svg?style=flat-square\n[contributors-url]: https://github.com/beuluis/restic/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/beuluis/restic.svg?style=flat-square\n[forks-url]: https://github.com/beuluis/restic/network/members\n[stars-shield]: https://img.shields.io/github/stars/beuluis/restic.svg?style=flat-square\n[stars-url]: https://github.com/beuluis/restic/stargazers\n[issues-shield]: https://img.shields.io/github/issues/beuluis/restic.svg?style=flat-square\n[issues-url]: https://github.com/beuluis/restic/issues\n[license-shield]: https://img.shields.io/github/license/beuluis/restic.svg?style=flat-square\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeuluis%2Frestic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeuluis%2Frestic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeuluis%2Frestic/lists"}