{"id":16430159,"url":"https://github.com/its-alex/restic-docker","last_synced_at":"2026-02-07T08:01:54.631Z","repository":{"id":243073919,"uuid":"809787736","full_name":"Its-Alex/restic-docker","owner":"Its-Alex","description":"Docker container to backup and restore data to and from a ftp","archived":false,"fork":false,"pushed_at":"2024-07-04T15:43:12.000Z","size":30,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T17:48:21.692Z","etag":null,"topics":["docker","ftp","playground","restic"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Its-Alex.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":"2024-06-03T12:59:34.000Z","updated_at":"2025-02-09T16:08:45.000Z","dependencies_parsed_at":"2024-11-10T16:12:27.101Z","dependency_job_id":null,"html_url":"https://github.com/Its-Alex/restic-docker","commit_stats":null,"previous_names":["its-alex/restic-ftp-docker"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Its-Alex/restic-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Its-Alex%2Frestic-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Its-Alex%2Frestic-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Its-Alex%2Frestic-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Its-Alex%2Frestic-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Its-Alex","download_url":"https://codeload.github.com/Its-Alex/restic-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Its-Alex%2Frestic-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29189675,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["docker","ftp","playground","restic"],"created_at":"2024-10-11T08:25:54.674Z","updated_at":"2026-02-07T08:01:54.616Z","avatar_url":"https://github.com/Its-Alex.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Restic docker\n\n![Docker Automated build](https://img.shields.io/docker/automated/itsalex/restic)\n\nThis repository aim to create a container capable to backup files with restic\nusing rclone to be compatible with any provider.\n\nContainer versions can be found on [DockerHub](https://hub.docker.com/repository/docker/itsalex/restic/tags).\n\n## Getting started\n\nTo use this container you can launch it from docker cli, for example using\nrclone:\n\n```sh-session\n$ docker run \\\n    -e RESTIC_PASSWORD=\"your_password\" \\\n    -e RESTIC_REPOSITORY=\"rclone:your_config:path_in_ftp\" \\\n    -v \"./rclone.conf:/root/.config/rclone/rclone.conf:ro\" \\\n    -v \"./path-to-backup:/backup/\"\n    Its-Alex/restic-docker:latest\n```\n\nOr add it to a `docker-compose.yml`:\n\n```yaml\n  restic:\n    image: Its-Alex/restic-docker:latest\n    environment:\n        RESTIC_PASSWORD=\"your_password\" # Use your repository password\n        RESTIC_REPOSITORY=\"rclone:your_config:path_in_ftp\" # Add your config and path\n    volumes:\n      - ./rclone.conf:/root/.config/rclone/rclone.conf:ro # Add your ftp to rclone config file\n      - ./path-to-backup:/backup/\n```\n\nYou can configure `backup` and `forget` commands using\n[environment variables](#configuration).\n\nYou can execute [`restic`](https://github.com/restic/restic) commands from the\ncontainer using [`command` argument of docker run](https://docs.docker.com/reference/cli/docker/container/run/),\nfor example to list existing snapshots:\n\n```sh-session\n$ docker run --rm \\\n    --network \"restic-docker\" \\\n    -e \"RESTIC_PASSWORD=your_password\" \\\n    -e \"RESTIC_REPOSITORY=rclone:your_config:path_in_ftp\" \\\n    -v \"./rclone.conf:/root/.config/rclone/rclone.conf:ro\" \\\n    -v ./path-to-restore-folder:/restore/ \\\n    Its-Alex/restic-docker:latest \\\n    snapshots\n```\n\nOr to restore a snapshot:\n\n```sh-session\n$ docker run --rm \\\n    --network \"restic-docker\" \\\n    -e \"RESTIC_PASSWORD=your_password\" \\\n    -e \"RESTIC_REPOSITORY=rclone:your_config:path_in_ftp\" \\\n    -v \"./rclone.conf:/root/.config/rclone/rclone.conf:ro\" \\\n    -v ./path-to-restore-folder:/restore/ \\\n    Its-Alex/restic-docker:latest \\\n    restore a46d6b7e -t \"/restore\"\n```\n\n## Configuration\n\nTo configure `restic-docker`, you can use environment variables from both `restic` and `restic-docker`, as documented below.\n\nPlease note that the `RESTIC_DOCKER_` prefix is used for `restic-docker` project environment variables.  \nWhen the `_DOCKER_` suffix is not present in the prefix, these are the environment variables supported in the restic project.\n\nFor information on environment variables supported in the restic project, refer to [this documentation](https://restic.readthedocs.io/en/stable/040_backup.html#environment-variables).\n\n| Name                                          | Default     | Description                                                                                                                                                                              |\n| --------------------------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| RESTIC_DOCKER_BACKUP_AND_FORGET_CRON_SCHEDULE | `0 * * * *` | Cron expression to launch [backup script](/backup.sh)                                                                                                                                    |\n| RESTIC_DOCKER_BACKUP_FOLDER                   | `/backup`   | Backup path                                                                                                                                                                              |\n| RESTIC_DOCKER_IS_FORGET_ENABLE                | `1`         | Enable or disable `restic forget script in crontab`                                                                                                                                      |\n| RESTIC_DOCKER_KEEP_HOURLY                     | `24`        | argument for `--keep-hourly` of `restic forget` command, see [restic forget policies](https://restic.readthedocs.io/en/latest/060_forget.html#removing-snapshots-according-to-a-policy)  |\n| RESTIC_DOCKER_KEEP_DAILY                      | `7`         | argument for `--keep-daily` of `restic forget` command, see [restic forget policies](https://restic.readthedocs.io/en/latest/060_forget.html#removing-snapshots-according-to-a-policy)   |\n| RESTIC_DOCKER_KEEP_WEEKLY                     | `4`         | argument for `--keep-weekly` of `restic forget` command, see [restic forget policies](https://restic.readthedocs.io/en/latest/060_forget.html#removing-snapshots-according-to-a-policy)  |\n| RESTIC_DOCKER_KEEP_MONTHLY                    | `12`        | argument for `--keep-monthly` of `restic forget` command, see [restic forget policies](https://restic.readthedocs.io/en/latest/060_forget.html#removing-snapshots-according-to-a-policy) |\n\n## Demo\n\nYou can try the container `restic-docker` with some examples:\n\n- Backup in `ftp` in [/demo/ftp](/demo/ftp) folder.\n\n## License\n\nRestic docker is licensed under [BSD 2-Clause License](https://opensource.org/licenses/BSD-2-Clause).\nYou can find the complete text in [`LICENSE`](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fits-alex%2Frestic-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fits-alex%2Frestic-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fits-alex%2Frestic-docker/lists"}