{"id":15957118,"url":"https://github.com/hadim/docker-rsync","last_synced_at":"2026-01-04T21:02:33.441Z","repository":{"id":140826800,"uuid":"216839532","full_name":"hadim/docker-rsync","owner":"hadim","description":"A Docker image that run rsync periodically using cron and s6-overlay.","archived":false,"fork":false,"pushed_at":"2019-10-29T15:39:12.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T14:01:45.058Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hadim.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":"2019-10-22T14:52:12.000Z","updated_at":"2020-07-30T01:47:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"c588b88f-fff6-4f84-a280-6f6bf4a3640e","html_url":"https://github.com/hadim/docker-rsync","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadim%2Fdocker-rsync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadim%2Fdocker-rsync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadim%2Fdocker-rsync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadim%2Fdocker-rsync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hadim","download_url":"https://codeload.github.com/hadim/docker-rsync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244173554,"owners_count":20410300,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-10-07T13:40:36.003Z","updated_at":"2026-01-04T21:02:33.351Z","avatar_url":"https://github.com/hadim.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-rsync\n\n[![Docker Automated build](https://img.shields.io/docker/cloud/automated/hadim/docker-rsync.svg)](https://hub.docker.com/r/hadim/docker-rsync 'DockerHub')\n[![Docker Build Status](https://img.shields.io/docker/cloud/build/hadim/docker-rsync.svg)](https://hub.docker.com/r/hadim/docker-rsync 'DockerHub')\n[![Docker Pulls](https://img.shields.io/docker/pulls/hadim/docker-rsync.svg)](https://hub.docker.com/r/hadim/docker-rsync 'DockerHub')\n[![Docker Image Size](https://images.microbadger.com/badges/image/hadim/docker-rsync.svg)](https://microbadger.com/images/hadim/docker-rsync \"MicroBadger\")\n\nA Docker image that run `rsync` periodically using `cron` and [`s6-overlay`](https://github.com/just-containers/s6-overlay).\n\n## How to use\n\n### Docker Hub\n\nUse the following `docker-compose.yml` file:\n\n```yaml\nversion: '3'\n\nservices:\n\n  rsync:\n    container_name: rsync\n    image: hadim/docker-rsync\n    restart: unless-stopped\n    volumes:\n      - ../data/source:/data/source:ro\n      - ../data/destination:/data/destination\n    environment:\n      TIMEZONE: \"America/Montreal\"\n      PUID: 1000\n      PGID: 1000\n      RSYNC_OPTIONS: \"--archive --delete --verbose --timeout=3600 --progress\"\n      CRONTAB_OPTIONS: \"0 0 * * *\"\n```\n\n### Cloning\nYou need to clone this repository and build the repository:\n\n```bash\ngit clone https://github.com/hadim/docker-rsync.git\ncd docker-rsync/\ndocker-compose build\n```\n\nEdit `docker-compose.yml`. Then run the container:\n\n```bash\ndocker-compose up -d\ndocker-compose logs -f rsync\n```\n\n## Configurations\n\n### Data Volumes\n\n| Directory | Description |\n| --- | --- |\n| `/data/source:ro` | Source Directory |\n| `/data/destination` | Destination Directory |\n\n### Environment Variables\n\n| Parameter | Function | Default |\n| --- | --- | --- |\n| `TIMEZONE` | [Timezone string](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) | `\"America/Montreal\"` |\n| `PUID` | User ID (use `id $USER`) | `1000` |\n| `PGID` | Group ID (use `id $USER`) | `1000` |\n| `CRONTAB_OPTIONS` | Crontab options | `\"0 0 * * *\"` |\n| `RSYNC_OPTIONS` | Rsync options | `\"--archive --delete --verbose --timeout=3600 --progress\"` |\n\n## License\n\n[MIT License](./LICENSE).\n\n## Author\n\n- [Hadrien Mary](https://github.com/hadim)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhadim%2Fdocker-rsync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhadim%2Fdocker-rsync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhadim%2Fdocker-rsync/lists"}