Let's copy all the contents of a Google Team Drive or a Google Drive Shared Folder to yours with few steps.
- Backup these folders to Google Drive without using host bandwidth, or
- Backup these folders to other cloud storage (e.g., OneDrive).
- Install Node.js
- Install rclone and configure it (if you haven't).
- Replace the
rclone.conf
with your rclone configuration. Use commandrclone config file
to see where your rclone configuration is located. - Ensure the
rclone.conf
conrains at least one remote with a working token. - Modify
list.txt
with the format offolder_ID===rclone_destination
. - You are good to go. See the Practical Case before you run the program to see if it works.
The rclone_destination
is in the format with dest:destpath
.
The path doesn't need to have double quotes even if the path contains whitespace (tested on Windows7/10).
We have a known troll file contains all the Rickroll (around 1 TB), and rclone is configured with a remote called GD_team
. The remote has a folder called trollYou
.
We want to backup that shared folder to the remote's folder. It is noted that
- The folder ID of the shared link will be
1N7rmP_1y4eo8bc75muJQPHXss-GgR1ja
- The rclone destination will be
GD_team:trollYou
By the information above, we shall have a line in the list.txt in the format of N7rmP_1y4eo8bc75muJQPHXss-GgR1ja===GD_team:trollYou
, put it in list.txt
.
Lanuch the application with node app.js
in the terminal (i.e., Cmd, Powershell, etc.).
-
If you don't have
rclone
in your path environment variable, you must changercloneCommand
in app.js to the path ofrclone
(e.g.,C:/rclone/rclone.exe
or wherever rclone is located). -
The function of without using host bandwidth only works when rclone destination is Google Drive remote. See rclone documentation for details.
-
The
list.txt
are multi-lines allowed and theoretically unlimited lines allowed. -
The drawback of the program is you have to update the
rclone.conf
each time before you run that, or the program may fail to run due to an expired token.