{"id":18790667,"url":"https://github.com/onsails/cloud-storage-sync","last_synced_at":"2025-10-30T02:07:34.880Z","repository":{"id":42856646,"uuid":"257137356","full_name":"onsails/cloud-storage-sync","owner":"onsails","description":"Library for syncing local files with Google Cloud Storage buckets","archived":false,"fork":false,"pushed_at":"2024-05-05T09:39:35.000Z","size":100,"stargazers_count":6,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T18:17:34.006Z","etag":null,"topics":["gcs","google","google-cloud","google-cloud-storage","rsync","sync"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/onsails.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2020-04-20T01:08:30.000Z","updated_at":"2023-08-19T13:49:55.000Z","dependencies_parsed_at":"2024-05-05T10:42:21.868Z","dependency_job_id":null,"html_url":"https://github.com/onsails/cloud-storage-sync","commit_stats":{"total_commits":90,"total_committers":4,"mean_commits":22.5,"dds":0.1333333333333333,"last_synced_commit":"cee799714e54e901e679db4ecaae481c229f225d"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onsails%2Fcloud-storage-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onsails%2Fcloud-storage-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onsails%2Fcloud-storage-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onsails%2Fcloud-storage-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onsails","download_url":"https://codeload.github.com/onsails/cloud-storage-sync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248726062,"owners_count":21151844,"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":["gcs","google","google-cloud","google-cloud-storage","rsync","sync"],"created_at":"2024-11-07T21:13:13.335Z","updated_at":"2025-10-30T02:07:34.875Z","avatar_url":"https://github.com/onsails.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cloud-storage-sync\n\n[![docs](https://docs.rs/cloud-storage-sync/badge.svg)](https://docs.rs/cloud-storage-sync)\n\nLibrary to sync files to, from and between Google Cloud Storage buckets\n\nThis project depends on [cloud-storage-rs](https://github.com/ThouCheese/cloud-storage-rs.git) crate.\nTo access bucket you need to specify `SERVICE_ACCOUNT` environment variable which should contain path to the service account json key.\n\n```rust\nlet force_overwrite = false;\nlet sync = Sync::new(force_overwrite);\n\nfor i in 1..=2 {\n    let op_count = sync.sync_local_to_gcs(\n        \"/some/local/file_or_dir\", \n        BUCKET,\n        \"some/directory\",\n    ).await?;\n    \n    if i == 2 {\n        assert_eq!(op_count, 0); // passes\n    }\n\n    let op_count = sync.sync_gcs_to_local(\n        BUCKET,\n        \"myprefix\",\n        \"../some/directory\"\n    ).await?;\n    \n    if i == 2 {\n        assert_eq!(op_count, 0); // passes\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonsails%2Fcloud-storage-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonsails%2Fcloud-storage-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonsails%2Fcloud-storage-sync/lists"}