{"id":27231504,"url":"https://github.com/javatarz/cron_s3_sync","last_synced_at":"2026-05-04T07:37:08.805Z","repository":{"id":148591772,"uuid":"326506912","full_name":"javatarz/cron_s3_sync","owner":"javatarz","description":"Docker image to run periodic sync to s3 using cron","archived":false,"fork":false,"pushed_at":"2021-01-04T06:48:08.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-10T14:07:48.667Z","etag":null,"topics":["docker-image","dockerfile","dockerhub-image"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/javatarz/cron_s3_sync","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/javatarz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2021-01-03T21:47:34.000Z","updated_at":"2021-01-05T07:18:39.000Z","dependencies_parsed_at":"2023-05-20T15:30:56.872Z","dependency_job_id":null,"html_url":"https://github.com/javatarz/cron_s3_sync","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/javatarz/cron_s3_sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javatarz%2Fcron_s3_sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javatarz%2Fcron_s3_sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javatarz%2Fcron_s3_sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javatarz%2Fcron_s3_sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javatarz","download_url":"https://codeload.github.com/javatarz/cron_s3_sync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javatarz%2Fcron_s3_sync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32599406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"online","status_checked_at":"2026-05-04T02:00:06.625Z","response_time":58,"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":["docker-image","dockerfile","dockerhub-image"],"created_at":"2025-04-10T13:44:42.149Z","updated_at":"2026-05-04T07:37:08.800Z","avatar_url":"https://github.com/javatarz.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Backup directory to S3 on cron using docker\n\nSync a directory with S3 on cron.\n\nTiny [alpine](https://hub.docker.com/_/alpine) footprint with the latest [AWS CLI](https://pypi.org/project/awscli/) and [tini for house cleaning](https://github.com/krallin/tini/issues/8#issuecomment-146135930) which is available on [Docker Hub](https://hub.docker.com/r/javatarz/cron_s3_sync).\n\n## Usage\n### Docker Run\n```bash\ndocker run \\\n  -e S3_PATH=\u003ctarget\u003e \\\n  -e CRON_SCHEDULE=\u003cschedule\u003e \\\n  -e AWS_ACCESS_KEY_ID=\u003ckey\u003e \\\n  -e AWS_SECRET_ACCESS_KEY=\u003csecret\u003e \\\n  -v \u003csource\u003e:/data \\\n  javatarz/cron_s3_sync\n```\n\n### Docker compose\n```yaml\n  backup_to_s3:\n    build: backup_to_s3\n    container_name: backup_to_s3\n    environment:\n      - S3_PATH=s3://some-bucket\n      - CRON_SCHEDULE=0 * * * *\n    env_file:\n      - ./secrets/backup_to_s3/env\n    volumes:\n      - ./data:/data\n    restart: unless-stopped\n```\n\n## Environment variables\n\n| Environment Variables   | Type      | Description\n| :---------------------  | :-------- | :----\n| `PARAMS`                | Optional  | `aws s3 sync --help`\n| `DATA_PATH`             | Optional  | source directory to read from\n| `S3_PATH`               | Mandatory | target for s3 sync\n| `CRON_SCHEDULE`         | Mandatory | schedule as [supported by crontab](https://crontab.guru)\n| `AWS_ACCESS_KEY_ID`     | Mandatory | Access key for AWS S3 writes\n| `AWS_SECRET_ACCESS_KEY` | Mandatory | Secret key for AWS S3 writes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavatarz%2Fcron_s3_sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjavatarz%2Fcron_s3_sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavatarz%2Fcron_s3_sync/lists"}