{"id":13551451,"url":"https://github.com/williamjohnstone/AutoRclone-Rewrite","last_synced_at":"2025-04-03T01:32:53.373Z","repository":{"id":47618202,"uuid":"239350416","full_name":"williamjohnstone/AutoRclone-Rewrite","owner":"williamjohnstone","description":"Rewrite of https://github.com/xyou365/AutoRclone","archived":false,"fork":false,"pushed_at":"2021-09-06T17:01:59.000Z","size":110,"stargazers_count":53,"open_issues_count":4,"forks_count":24,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-08-01T12:24:52.171Z","etag":null,"topics":["google-drive","hacktoberfest","hacktoberfest2021","linux","macos","rclone","service-accounts","team-drive","windows"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/williamjohnstone.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-09T18:10:29.000Z","updated_at":"2024-06-20T20:14:28.000Z","dependencies_parsed_at":"2022-09-21T01:41:43.182Z","dependency_job_id":null,"html_url":"https://github.com/williamjohnstone/AutoRclone-Rewrite","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/williamjohnstone%2FAutoRclone-Rewrite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamjohnstone%2FAutoRclone-Rewrite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamjohnstone%2FAutoRclone-Rewrite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamjohnstone%2FAutoRclone-Rewrite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/williamjohnstone","download_url":"https://codeload.github.com/williamjohnstone/AutoRclone-Rewrite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222905945,"owners_count":17055820,"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":["google-drive","hacktoberfest","hacktoberfest2021","linux","macos","rclone","service-accounts","team-drive","windows"],"created_at":"2024-08-01T12:01:48.503Z","updated_at":"2024-11-03T21:32:25.629Z","avatar_url":"https://github.com/williamjohnstone.png","language":"Python","readme":"# AutoRClone Rewrite\n\nOriginal Repository: https://github.com/xyou365/AutoRclone\n\nNOTE: This is a work in progress, here is a todo list\n\n## TODO\n\n- [ ] Add ability to watch folder\n- [ ] Retain amount transferred between SAs\n- [ ] Rewrite `add_to_google_group.py`, `add_to_team_drive.py` and `gen_sa_accounts.py` to make them more intuitive and fix broken english\n- [ ] Write instructions\n- [ ] Add debug logging\n- [ ] Finish command line argument documentation\n\n\n- [x] ~~Add estimated time of completion~~\n- [x] ~~Fix ETA for some edge cases (syncing files, etc. where whole source will not be transferred)~~\n- [x] ~~Rewrite output, make it less ugly, proposed layout: `[AutoRClone] (Job Name) amount transferred/total transfer amount @ \u003ctransfer speed here\u003e SA: \u003cnum of SA here\u003e ETA: \u003cETA Here\u003e`~~\n- [x] ~~Add command line args to choose between copy, move or sync~~\n- [x] ~~Add bandwidth Limiting~~\n- [x] ~~Implement proper support for encrypted sources and destinations~~\n- [x] ~~Remove rc connect failed output messages to reduce confusion~~\n- [x] ~~Add more command line args to set RClone args~~\n- [x] ~~Make RClone command much less hardcoded~~\n- [x] ~~Allow reading remotes from external RClone config~~\n- [x] ~~Add better logging~~\n- [x] ~~Replace all prints with new logger~~\n- [x] ~~Replace `sys.exit()` calls with messages with proper logging~~\n- [x] ~~Implement my own transfer speed calculator as the speeds RClone is reporting seem to be off~~\n- [x] ~~Automatically rotate SAs that have reached their 24hr quota~~\n- [x] ~~Ignore no bytes transferred if file checks are increasing~~\n\n*Instructions will be written once the rewrite is complete.*\n\n## Documentation\n\nPLEASE NOTE: This documentation is not complete.\n\n### Reading Remotes from an RClone config file\n\nOne of the main benefits of this rewrite is being able to read your existing rclone remotes and use them to transfer data. To use this feature you must specifiy an rclone config file, for this, use the `--rclone-config-path` argument as shown below.\n\n`python3 autorclone.py --copy `\n\n`python3 autorclone.py --sync -s g-media-crypt -sp media/ -d g-media-crypt-2 -\ndp media/ --rclone-config-path /root/.config/rclone/rclone.conf --drive-chunk-size 64M --transfers 8  --sa-start-id 9`\n\n### Command Line Arguments\n\n#### copy\n\nDescription: **Copy files from source to destination.**\nExample Usage: `python3 autorclone.py --copy -s \u003csource\u003e -d \u003cdestination\u003e`\n\n#### move\n\nDescription: **Move files from source to destination.**\nExample Usage: `python3 autorclone.py --move -s \u003csource\u003e -d \u003cdestination\u003e`\n\n#### sync\n\nDescription: **Sync the source to the destination, changing the destination only. Doesn’t transfer unchanged files.**\nExample Usage: `python3 autorclone.py --sync -s \u003csource\u003e -d \u003cdestination\u003e`\n\n#### source\n\nShorthand: `s`\nDescription: **The source of your files. ID of Team Drive, ID of publicly shared folder or an RClone remote (Must use --rclone-config-path).**\nExample Usage: `python3 autorclone.py --copy -s \u003csource\u003e -d \u003cdestination\u003e`\n\n#### destination\n\nShorthand: `d`\nDescription: **The destination for your files. ID of Team Drive, ID of publicly shared folder or an RClone remote (Must use --rclone-config-path).**\nExample Usage: `python3 autorclone.py --copy -s \u003csource\u003e -d \u003cdestination\u003e`\n\n#### source-path\n\nShorthand: `sp`\nDescription: **The folder path inside source. (Local Path or path in Google Drive).**\nExample Usage: `python3 autorclone.py --copy -s \u003csource\u003e -sp somefolder/subfolder -d \u003cdestination\u003e`\nDefault: \n\n#### destination-path\n\nShorthand: `dp`\nDescription: **The folder path inside the destination. (Local path or path in Google Drive).**\nExample Usage: `python3 autorclone.py --copy -s \u003csource\u003e -d \u003cdestination\u003e -dp somefolder/subfolder`\nDefault: \n\n#### name\n\nShorthand: `n`\nDescription: **Copy files from source to destination.**\nExample Usage: `python3 autorclone.py --copy -s \u003csource\u003e -d \u003cdestination\u003e`\n\n#### log-file\n\nDescription: **Copy files from source to destination.**\nExample Usage: `python3 autorclone.py --copy -s \u003csource\u003e -d \u003cdestination\u003e`\n\n#### rclone-log-file\n\nDescription: **Copy files from source to destination.**\nExample Usage: `python3 autorclone.py --copy -s \u003csource\u003e -d \u003cdestination\u003e`\n\n#### service-account-dir\n\nDescription: **Copy files from source to destination.**\nExample Usage: `python3 autorclone.py --copy -s \u003csource\u003e -d \u003cdestination\u003e`\n\n#### port\n\nDescription: **Copy files from source to destination.**\nExample Usage: `python3 autorclone.py --copy -s \u003csource\u003e -d \u003cdestination\u003e`\n\n#### sa-start-id\n\nDescription: **Copy files from source to destination.**\nExample Usage: `python3 autorclone.py --copy -s \u003csource\u003e -d \u003cdestination\u003e`\n\n#### sa-end-id\n\nDescription: **Copy files from source to destination.**\nExample Usage: `python3 autorclone.py --copy -s \u003csource\u003e -d \u003cdestination\u003e`\n\n#### rclone-config-path\n\nDescription: **Copy files from source to destination.**\nExample Usage: `python3 autorclone.py --copy -s \u003csource\u003e -d \u003cdestination\u003e`\n\n#### dry-run\n\nDescription: **Copy files from source to destination.**\nExample Usage: `python3 autorclone.py --copy -s \u003csource\u003e -d \u003cdestination\u003e`\n\n#### bwlimit\n\nDescription: **Copy files from source to destination.**\nExample Usage: `python3 autorclone.py --copy -s \u003csource\u003e -d \u003cdestination\u003e`\n\n#### tpslimit\n\nDescription: **Copy files from source to destination.**\nExample Usage: `python3 autorclone.py --copy -s \u003csource\u003e -d \u003cdestination\u003e`\n\n#### transfers\n\nDescription: **Copy files from source to destination.**\nExample Usage: `python3 autorclone.py --copy -s \u003csource\u003e -d \u003cdestination\u003e`\n\n#### drive-chunk-size\n\nDescription: **Copy files from source to destination.**\nExample Usage: `python3 autorclone.py --copy -s \u003csource\u003e -d \u003cdestination\u003e`\n\n#### delete-empty-src-dirs\n\nDescription: **Copy files from source to destination.**\nExample Usage: `python3 autorclone.py --copy -s \u003csource\u003e -d \u003cdestination\u003e`\n\n#### create-empty-src-dirs\n\nDescription: **Copy files from source to destination.**\nExample Usage: `python3 autorclone.py --copy -s \u003csource\u003e -d \u003cdestination\u003e`\n\n#### v\n\nDescription: **Copy files from source to destination.**\nExample Usage: `python3 autorclone.py --copy -s \u003csource\u003e -d \u003cdestination\u003e`\n\n#### vv\n\nDescription: **Copy files from source to destination.**\nExample Usage: `python3 autorclone.py --copy -s \u003csource\u003e -d \u003cdestination\u003e`\n\n#### debug\n\nDescription: **Copy files from source to destination.**\nExample Usage: `python3 autorclone.py --copy -s \u003csource\u003e -d \u003cdestination\u003e`\n\n#### generated-config-path\n\nDescription: **Copy files from source to destination.**\nExample Usage: `python3 autorclone.py --copy -s \u003csource\u003e -d \u003cdestination\u003e`","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilliamjohnstone%2FAutoRclone-Rewrite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilliamjohnstone%2FAutoRclone-Rewrite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilliamjohnstone%2FAutoRclone-Rewrite/lists"}