{"id":19269612,"url":"https://github.com/status-im/infra-role-s3cmd-sync","last_synced_at":"2025-11-09T04:02:58.769Z","repository":{"id":85457820,"uuid":"452761915","full_name":"status-im/infra-role-s3cmd-sync","owner":"status-im","description":"Ansible role for syncing folders with S3 buckets","archived":false,"fork":false,"pushed_at":"2024-03-14T20:50:53.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-02-22T17:43:27.949Z","etag":null,"topics":["ansible-role","infra","s3","s3cmd"],"latest_commit_sha":null,"homepage":"","language":null,"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/status-im.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":"2022-01-27T16:39:17.000Z","updated_at":"2022-01-27T17:04:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"30b71ec7-2121-46e4-9a32-43bd088706ba","html_url":"https://github.com/status-im/infra-role-s3cmd-sync","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/status-im%2Finfra-role-s3cmd-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/status-im%2Finfra-role-s3cmd-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/status-im%2Finfra-role-s3cmd-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/status-im%2Finfra-role-s3cmd-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/status-im","download_url":"https://codeload.github.com/status-im/infra-role-s3cmd-sync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240371761,"owners_count":19790888,"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":["ansible-role","infra","s3","s3cmd"],"created_at":"2024-11-09T20:20:46.760Z","updated_at":"2025-11-09T04:02:58.688Z","avatar_url":"https://github.com/status-im.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Description\n\nThis role is intended for syncing folders with S3 buckets.\n\n# Installation\n\nIn your `requirements.yml` file:\n```yaml\n- name: infra-role-s3cmd-sync\n  src: git@github.com:status-im/infra-role-s3cmd-sync.git\n  scm: git\n```\n\n# Usage\n\nShould be included by another role and ran with necessary variables:\n```yaml\n- name: Configure Ghost backups\n  include_role:\n    name: infra-role-s3cmd-sync\n  vars:\n    s3cmd_sync_name: 'my-app-logs'\n    s3cmd_sync_bucket_name: 'logs-backup'\n    s3cmd_sync_bucket_path: '/subdir/'\n    s3cmd_sync_directory: '/var/log/my-app'\n    s3cmd_sync_timer_frequency: 'daily'\n    s3cmd_sync_include_regexes: ['.*\\.gz$']\n    s3cmd_sync_exclude_regexes: ['.*\\.log$']\n    s3cmd_sync_access_key: 'ACCESS_KEY'\n    s3cmd_sync_secret_key: 'SECRET_KEY'\n```\n\n# Administration\n\nYou can manage the Systemd service and timer using `systemctl`:\n```\n \u003e sudo systemctl status -cat sync-my-app-logs.service\n● sync-my-app-logs.service - Sync /data/my-app/logs/. to s3://logs-backup/\n     Loaded: loaded (/etc/systemd/system/sync-my-app-logs.service; enabled; vendor preset: enabled)\n     Active: inactive (dead) since Thu 2022-01-27 18:53:09 UTC; 57s ago\nTriggeredBy: ● sync-my-app-logs.timer\n       Docs: https://github.com/status-im/infra-role-systemd-timer\n    Process: 230052 ExecStart=/usr/bin/s3cmd sync --stats /data/my-app/logs/. s3://logs-backup/subdir/ (code=exited, status=0/SUCCES\u003e\n   Main PID: 230052 (code=exited, status=0/SUCCESS)\n\nStarting Sync /data/my-app/logs/. to s3://logs-backup/...\nupload: '/data/my_app/logs/./20220127_1800.log.gz' -\u003e 's3://logs-backup/subdir/20220127_1800.log.gz' (3670016 bytes in 0.3 seconds, 10.97 MB/s) [1 of 1]\nDone. Uploaded 3670016 bytes in 1.0 seconds, 3.50 MB/s.\nStats: Number of files: 29 (327578277 bytes)\nStats: Number of files transferred: 1 (3670016 bytes)\nsync-my_app-logs.service: Succeeded.\nFinished Sync /data/my-app/logs/. to s3://logs-backup/.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatus-im%2Finfra-role-s3cmd-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstatus-im%2Finfra-role-s3cmd-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatus-im%2Finfra-role-s3cmd-sync/lists"}