Jump to content

SendTo-rclone-GDrive [Moodkiller]


Moodkiller

Recommended Posts

SendTo-rclone-GDrive

1TbrhQ1.png+BSQHRem.png?1

Synopsis: A simple .bat script to enable the user to Right-click on a folder or file and send it to your preconfigured GDrive account using rclone in Windows. To all of those using Google Drive, you should look at using rclone as the backend to get data to your GDrive. It's much better than the web interface and Googles Backup and Sync / Drive File Stream options.

 

info

Prerequisites

  • Installed and configured Google Drive rclone setup (https://github.com/ncw/rclone)
  • Make sure `rclone.exe` is located in your `C:/Windows` directory. Alternatively, define the location here

 

Installation

  1. Download/save the .bat to any directory you choose.
  2. Open the run dialogue box (Winkey+R) and type `shell:sendto` followed by the Enter key.
  3. Copy and paste a short-cut to the file in the SendTo folder.
  4. NB! Right-click the newly created shortcut, click `Properties` and make sure the `Start in:` field is empty (clear what's in there if it isn't).
  5. For aesthetics, click on the `Change Icon...` button and browse for the included icon from this repo (optional). Click `Ok`.
  6. Click `Ok` to close the properties window.
  7. Rename the created shortcut from `rclone-GDrive.bat - Shortcut` to `rclone-GDrive` or to your personal preference (optional).


Usage

  1. Locate a folder or file you would like to upload to GDrive.
  2. Right-click it and go to `Send to` > `rclone-GDrive` (or whatever name you may have given it). A CMD window should open. Note: This window will prepopulate with the folders in the root directory of your GDrive account.
  3. Follow the onscreen prompts and input the required details (destination upload directory, confirmation and simultaneous transfers)
  4. ...

 

 

screens.png

Spoiler

 

Context Menu

Wez5EEN.png

 

CMD Window with user inputs

GrQysuN.png


Completed confirmation with destination location

nBJpdCo.png

 

 

downloads

File Hosts:
Github repository: SendTo-rclone-GDrive
 

enjoy

 

 

 

Edited by Moodkiller
  • Like 2
Link to comment
Share on other sites

look at moodkiller here, putting effort into his rclone scripts.

 

meanwhile: 

C:\rclone\rclone.exe copy --size-only --verbose --no-update-modtime --transfers 3 --checkers 15 --contimeout 60s --timeout 300s --retries 3 --low-level-retries 10 --stats 1s S:\jails\sonarr_1\mnt\Media anime:scv/content
@Pause

 

Link to comment
Share on other sites

1 minute ago, Catar said:

look at moodkiller here, putting effort into his rclone scripts.

 

meanwhile: 


C:\rclone\rclone.exe copy --size-only --verbose --no-update-modtime --transfers 3 --checkers 15 --contimeout 60s --timeout 300s --retries 3 --low-level-retries 10 --stats 1s S:\jails\sonarr_1\mnt\Media anime:scv/content
@Pause

 

lol, ty @Catar

The major motivation was to get away from typing the full paths into these .bats & and to also control the amount of bandwidth to use for a particular transfer (i.e the transfers count).

 

Oh btw, found something interesting while reading through the options for rclone, you might want to have a play with --tpslimit-float and --tpslimit-burst int (https://rclone.org/docs/#tpslimit-float).

Might help with the rclone mounts? I don't know if API limits are the same as HTTP ones, but worth a shot. By my calculations, --tpslimit-float should be set to a maximum value of 100 to avoid bans/limits. Granted this wont solve the total download limit...

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...
Please Sign In