How To Backup From Google Shared Drive to Onedrive Using Rclone

 How To Backup Transfering Files Cloud to Cloud Using Rclone

from Google Shared Drive to Onedrive
from Onedrive to Google Shared Drive


1. Instal Rclone (skip this step if it already installed)
apt install rclone

2. Setting Config
rclone config
2.1. – Upload Service Account to Local Storage (VPS)
2.2. – Setting Gdrive Rclone Remote config, with service account
2.2.1. –
2.3. – Setting Onedrive Rclone Remote config

3. Setting Bash Execute Command For Gdrive and OneDrive

>> Command for Copy Files from GDRIVE to OneDrive
3.0. – Create New Files by command nano [any.name.file.]
nano godrivecopy

3.1. – Copy paste below command

#!/bin/bash
/usr/bin/rclone copy --progress --update --verbose --transfers 30 --checkers 8 --contimeout 60s --timeout 300s --retries 3 --low-level-retries 10 --stats 1s --stats-file-name-length 0 "godrive:/Wiszky Go/" "onedrive:/Wiszky One/"

CTRL + X Y ENTER –> to save file

3.2. – Follow the rest command below one by one
chmod u+x godrivecopy
mv godrivecopy /usr/local/bin/
chown $USER.$USER /usr/local/bin/godrivecopy
godrivecopy

(Now Just type name of file to execute copy from Gdrive to OneDrive)

>> Command for Copy Files from OneDrive to GDRIVE
3.3. – Create New Files by command nano [any.name.file.]
nano onedrivecopy

3.1. – Copy paste below command

#!/bin/bash
/usr/bin/rclone copy --progress --update --verbose --transfers 30 --checkers 8 --contimeout 60s --timeout 300s --retries 3 --low-level-retries 10 --stats 1s --stats-file-name-length 0 "onedrive:/Wiszky One/" "godrive:/Wiszky Go/" 


CTRL + X Y ENTER –> to save file

3.2. – Follow the rest command below one by one
chmod u+x onedrivecopy
mv onedrivecopy /usr/local/bin/
chown $USER.$USER /usr/local/bin/onedrivecopy
onedrivecopy

(Now Just type name of file to execute copy from OneDrive to Gdrive)

4. Conclusion
– if you want to edit command just go to /usr/local/bin/ by
cd /usr/local/bin/ and nano godrivecopy or nano nano onedrivecopy
as simple like that.
– Basic command is rclone copy “remotename1:/path directory” “remotename2:/path destination directory”
go to https://rclone.org/commands to see all list rclone commands.
– To see listing of remote files
rclone lsf remotename: (to see list of files on the remote)
rclone lsd remotename: (to see list of directory on the remote)
see all complete documentation at rclone.org.

Post a Comment

Previous Post Next Post