Original Repository: https://github.com/xyou365/AutoRclone
NOTE: This is a work in progress, here is a todo list
-
Add ability to watch folder
-
Retain amount transferred between SAs
-
Rewrite
add_to_google_group.py
,add_to_team_drive.py
andgen_sa_accounts.py
to make them more intuitive and fix broken english -
Write instructions
-
Add debug logging
-
Finish command line argument documentation
-
Add estimated time of completion -
Fix ETA for some edge cases (syncing files, etc. where whole source will not be transferred) -
Rewrite output, make it less ugly, proposed layout:[AutoRClone] (Job Name) amount transferred/total transfer amount @ <transfer speed here> SA: <num of SA here> ETA: <ETA Here>
-
Add command line args to choose between copy, move or sync -
Add bandwidth Limiting -
Implement proper support for encrypted sources and destinations -
Remove rc connect failed output messages to reduce confusion -
Add more command line args to set RClone args -
Make RClone command much less hardcoded -
Allow reading remotes from external RClone config -
Add better logging -
Replace all prints with new logger -
Replacesys.exit()
calls with messages with proper logging -
Implement my own transfer speed calculator as the speeds RClone is reporting seem to be off -
Automatically rotate SAs that have reached their 24hr quota -
Ignore no bytes transferred if file checks are increasing
Instructions will be written once the rewrite is complete.
PLEASE NOTE: This documentation is not complete.
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
Description: Copy files from source to destination.
Example Usage: python3 autorclone.py --copy -s <source> -d <destination>
Description: Move files from source to destination.
Example Usage: python3 autorclone.py --move -s <source> -d <destination>
Description: Sync the source to the destination, changing the destination only. Doesn’t transfer unchanged files.
Example Usage: python3 autorclone.py --sync -s <source> -d <destination>
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 <source> -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 <source> -d <destination>
Shorthand: sp
Description: The folder path inside source. (Local Path or path in Google Drive).
Example Usage: python3 autorclone.py --copy -s <source> -sp somefolder/subfolder -d <destination>
Default:
Shorthand: dp
Description: The folder path inside the destination. (Local path or path in Google Drive).
Example Usage: python3 autorclone.py --copy -s <source> -d <destination> -dp somefolder/subfolder
Default:
Shorthand: n
Description: Copy files from source to destination.
Example Usage: python3 autorclone.py --copy -s <source> -d <destination>
Description: Copy files from source to destination.
Example Usage: python3 autorclone.py --copy -s <source> -d <destination>
Description: Copy files from source to destination.
Example Usage: python3 autorclone.py --copy -s <source> -d <destination>
Description: Copy files from source to destination.
Example Usage: python3 autorclone.py --copy -s <source> -d <destination>
Description: Copy files from source to destination.
Example Usage: python3 autorclone.py --copy -s <source> -d <destination>
Description: Copy files from source to destination.
Example Usage: python3 autorclone.py --copy -s <source> -d <destination>
Description: Copy files from source to destination.
Example Usage: python3 autorclone.py --copy -s <source> -d <destination>
Description: Copy files from source to destination.
Example Usage: python3 autorclone.py --copy -s <source> -d <destination>
Description: Copy files from source to destination.
Example Usage: python3 autorclone.py --copy -s <source> -d <destination>
Description: Copy files from source to destination.
Example Usage: python3 autorclone.py --copy -s <source> -d <destination>
Description: Copy files from source to destination.
Example Usage: python3 autorclone.py --copy -s <source> -d <destination>
Description: Copy files from source to destination.
Example Usage: python3 autorclone.py --copy -s <source> -d <destination>
Description: Copy files from source to destination.
Example Usage: python3 autorclone.py --copy -s <source> -d <destination>
Description: Copy files from source to destination.
Example Usage: python3 autorclone.py --copy -s <source> -d <destination>
Description: Copy files from source to destination.
Example Usage: python3 autorclone.py --copy -s <source> -d <destination>
Description: Copy files from source to destination.
Example Usage: python3 autorclone.py --copy -s <source> -d <destination>
Description: Copy files from source to destination.
Example Usage: python3 autorclone.py --copy -s <source> -d <destination>
Description: Copy files from source to destination.
Example Usage: python3 autorclone.py --copy -s <source> -d <destination>
Description: Copy files from source to destination.
Example Usage: python3 autorclone.py --copy -s <source> -d <destination>