Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/williamjohnstone/AutoRclone-Rewrite
Rewrite of https://github.com/xyou365/AutoRclone
https://github.com/williamjohnstone/AutoRclone-Rewrite
google-drive hacktoberfest hacktoberfest2021 linux macos rclone service-accounts team-drive windows
Last synced: 3 months ago
JSON representation
Rewrite of https://github.com/xyou365/AutoRclone
- Host: GitHub
- URL: https://github.com/williamjohnstone/AutoRclone-Rewrite
- Owner: williamjohnstone
- Created: 2020-02-09T18:10:29.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-06T17:01:59.000Z (over 3 years ago)
- Last Synced: 2024-08-01T12:24:52.171Z (6 months ago)
- Topics: google-drive, hacktoberfest, hacktoberfest2021, linux, macos, rclone, service-accounts, team-drive, windows
- Language: Python
- Homepage:
- Size: 107 KB
- Stars: 53
- Watchers: 8
- Forks: 24
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# AutoRClone Rewrite
Original Repository: https://github.com/xyou365/AutoRclone
NOTE: This is a work in progress, here is a todo list
## TODO
- [ ] Add ability to watch folder
- [ ] Retain amount transferred between SAs
- [ ] 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
- [ ] Write instructions
- [ ] Add debug logging
- [ ] Finish command line argument documentation- [x] ~~Add estimated time of completion~~
- [x] ~~Fix ETA for some edge cases (syncing files, etc. where whole source will not be transferred)~~
- [x] ~~Rewrite output, make it less ugly, proposed layout: `[AutoRClone] (Job Name) amount transferred/total transfer amount @ SA: ETA: `~~
- [x] ~~Add command line args to choose between copy, move or sync~~
- [x] ~~Add bandwidth Limiting~~
- [x] ~~Implement proper support for encrypted sources and destinations~~
- [x] ~~Remove rc connect failed output messages to reduce confusion~~
- [x] ~~Add more command line args to set RClone args~~
- [x] ~~Make RClone command much less hardcoded~~
- [x] ~~Allow reading remotes from external RClone config~~
- [x] ~~Add better logging~~
- [x] ~~Replace all prints with new logger~~
- [x] ~~Replace `sys.exit()` calls with messages with proper logging~~
- [x] ~~Implement my own transfer speed calculator as the speeds RClone is reporting seem to be off~~
- [x] ~~Automatically rotate SAs that have reached their 24hr quota~~
- [x] ~~Ignore no bytes transferred if file checks are increasing~~*Instructions will be written once the rewrite is complete.*
## Documentation
PLEASE NOTE: This documentation is not complete.
### Reading Remotes from an RClone config file
One 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.
`python3 autorclone.py --copy `
`python3 autorclone.py --sync -s g-media-crypt -sp media/ -d g-media-crypt-2 -
dp media/ --rclone-config-path /root/.config/rclone/rclone.conf --drive-chunk-size 64M --transfers 8 --sa-start-id 9`### Command Line Arguments
#### copy
Description: **Copy files from source to destination.**
Example Usage: `python3 autorclone.py --copy -s -d `#### move
Description: **Move files from source to destination.**
Example Usage: `python3 autorclone.py --move -s -d `#### sync
Description: **Sync the source to the destination, changing the destination only. Doesn’t transfer unchanged files.**
Example Usage: `python3 autorclone.py --sync -s -d `#### source
Shorthand: `s`
Description: **The source of your files. ID of Team Drive, ID of publicly shared folder or an RClone remote (Must use --rclone-config-path).**
Example Usage: `python3 autorclone.py --copy -s -d `#### destination
Shorthand: `d`
Description: **The destination for your files. ID of Team Drive, ID of publicly shared folder or an RClone remote (Must use --rclone-config-path).**
Example Usage: `python3 autorclone.py --copy -s -d `#### source-path
Shorthand: `sp`
Description: **The folder path inside source. (Local Path or path in Google Drive).**
Example Usage: `python3 autorclone.py --copy -s -sp somefolder/subfolder -d `
Default:#### destination-path
Shorthand: `dp`
Description: **The folder path inside the destination. (Local path or path in Google Drive).**
Example Usage: `python3 autorclone.py --copy -s -d -dp somefolder/subfolder`
Default:#### name
Shorthand: `n`
Description: **Copy files from source to destination.**
Example Usage: `python3 autorclone.py --copy -s -d `#### log-file
Description: **Copy files from source to destination.**
Example Usage: `python3 autorclone.py --copy -s -d `#### rclone-log-file
Description: **Copy files from source to destination.**
Example Usage: `python3 autorclone.py --copy -s -d `#### service-account-dir
Description: **Copy files from source to destination.**
Example Usage: `python3 autorclone.py --copy -s -d `#### port
Description: **Copy files from source to destination.**
Example Usage: `python3 autorclone.py --copy -s -d `#### sa-start-id
Description: **Copy files from source to destination.**
Example Usage: `python3 autorclone.py --copy -s -d `#### sa-end-id
Description: **Copy files from source to destination.**
Example Usage: `python3 autorclone.py --copy -s -d `#### rclone-config-path
Description: **Copy files from source to destination.**
Example Usage: `python3 autorclone.py --copy -s -d `#### dry-run
Description: **Copy files from source to destination.**
Example Usage: `python3 autorclone.py --copy -s -d `#### bwlimit
Description: **Copy files from source to destination.**
Example Usage: `python3 autorclone.py --copy -s -d `#### tpslimit
Description: **Copy files from source to destination.**
Example Usage: `python3 autorclone.py --copy -s -d `#### transfers
Description: **Copy files from source to destination.**
Example Usage: `python3 autorclone.py --copy -s -d `#### drive-chunk-size
Description: **Copy files from source to destination.**
Example Usage: `python3 autorclone.py --copy -s -d `#### delete-empty-src-dirs
Description: **Copy files from source to destination.**
Example Usage: `python3 autorclone.py --copy -s -d `#### create-empty-src-dirs
Description: **Copy files from source to destination.**
Example Usage: `python3 autorclone.py --copy -s -d `#### v
Description: **Copy files from source to destination.**
Example Usage: `python3 autorclone.py --copy -s -d `#### vv
Description: **Copy files from source to destination.**
Example Usage: `python3 autorclone.py --copy -s -d `#### debug
Description: **Copy files from source to destination.**
Example Usage: `python3 autorclone.py --copy -s -d `#### generated-config-path
Description: **Copy files from source to destination.**
Example Usage: `python3 autorclone.py --copy -s -d `