Setting up rclone
Install rclone
- On Windows using Chocolatey (package manager for Windows):
- Open a PowerShell window as Administrator.
- Paste and run:
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
- Open a new CMD window as administrator and enter:
choco install rclone
- On Windows manually:
- Download the latest build: https://downloads.rclone.org/rclone-current-windows-amd64.zip
- Create a directory somewhere (this will be a permanent directory, i.e. you can't move or delete it without breaking stuff).
- Extract the contents of the subfolder of rclone-current-windows-amd64.zip to the directory. Your directory should contain rclone.exe and other files, NOT a folder named rclone-current-windows-amd64.
- Open a new CMD window as administrator and enter:
setx /M path "%path%;[your rclone directory, e.g. C:\Software\rclone]
- Type
refreshenv
andrclone -?
to make sure it works correctly.
- On macOS/Linux/BSD:
- Open a terminal emulator and run:
curl https://rclone.org/install.sh | sudo bash
- Open a terminal emulator and run:
Adding the source
This will add the team drive that was shared with you to rclone's configuration.
- Open a non-administrative CMD window / terminal emulator depending on your OS
- Run
rclone config
- Enter
n
to create a new remote - Enter a name -
hbg
is recommended - Enter
drive
to select Google Drive - Leave the client_id blank and press enter
- Leave the client_secret blank and press enter
- Enter
1
as the scope - Leave the root_folder_id blank and press enter
- Leave the service_account_file blank and press enter
- Enter
n
to decline editing advanced config - Enter
y
to accept using auto config - A browser tab will open - log in with your or G Suite / .edu account and click "Allow", you can close the tab when the success page appears
- Enter
y
to configure it as a team drive - When the list of team drives is shown, enter the number that correlates to the drive named "hbg"
- Enter
y
to accept the configuration
Adding the destination
This will add the drive you are copying to to rclone's configuration.
- Open a non-administrative CMD window / terminal emulator depending on your OS
- Run
rclone config
if you closed it after adding the source - Enter
n
to create a new remote - Enter a name -
gdrive
is recommended - Enter
drive
to select Google Drive - Leave the client_id blank and press enter
- Leave the client_secret blank and press enter
- Enter
1
as the scope - Leave the root_folder_id blank and press enter
- Leave the service_account_file blank and press enter
- Enter
n
to decline editing advanced config - Enter
y
to accept using auto config - A browser tab will open - log in with your or G Suite / .edu account and click "Allow", you can close the tab when the success page appears
- If you're copying the files to another team drive, enter
y
then select the number that correlates with the destination team drive, otherwise entern
- Enter
y
to accept the configuration
Copying the files
This will copy the files from the source drive to the destination drive. This is all done server-side, so it will not use much of your bandwidth. There is an upload maximum of 750GB per day, so you will need to run this each day until it's all copied. Once it hits the limit, you can close the window.
- Open a non-administrative CMD window / terminal emulator depending on your OS
- Run
rclone copy "hbg:hbg/NSZ" "gdrive:[your destination directory of choice, e.g hbg/NSZ]" -P --drive-server-side-across-configs
You can also swap out "hbg:hbg/NSZ" for "hbg:hbg/Custom XCI", "hbg:hbg/NSP Dumps", or "hbg:hbg/XCI Trimmed" if you prefer a different format.
Creating an automatic task
This will automatically run the copy command to keep your copy up to date. It is recommended to only create this after you've finished copying everything already available, otherwise just it will hit the 750GB limit and just keep pointlessly running through every file.
- On Windows
- Open Task Scheduler
- Click Action > Create Basic Task
- Enter a name and click Next -
hbg
is recommended - Select how often you want it to run and click Next - daily is recommended
- Enter the time you want it to start and click Next
- Select "Start a program" and click Next
- Paste the command from the previous section into the "Program/script" section and click Next
- When prompted that arguments have been included in the program box, click Yes
- Tick "Open the Properties dialog for this task when I click Finish" and click Finish
- When the properties box appears, select "Run whether the user is logged on or not" and click OK - this will prevent a window from popping up when the task runs, doing it in the background instead
- Enter your password when prompted and click OK
- On macOS/Linux/BSD:
- Open a terminal emulator
- (Optional) Enter
export EDITOR=nano
- this is optional, but will ensure nano is used instead of Vim which can be complicated for new users - Enter
crontab -e
- you may be asked to select an editor again, in which case you should probably select nano - Move down to the bottom of the file and enter
[minute - 0-59] [hour - 0-23] * * * rclone copy "hbg:hbg/NSZ" "gdrive:[your destination directory of choice, e.g hbg/NSZ]" -P --drive-server-side-across-configs
- this will run the command daily at the minute and hour you specify - Save and exit the file - in nano this will involve pressing Ctrl+O, then Enter, then Ctrl+X