How To Sync UnRaid Share With Google Drive Using RClone?

What is the problem you are having with rclone?

First post here. I did search and didn't quite see my issue, but if I've missed it and there's a guide or known fix, I am all ears. I have a feeling it's a line or two in my config...anyway, I'm Wondering if it's possible (and steps to do it) to have a single folder or share on UnRaid and have it sync both ways with a folder on Google Drive. IOW, If I add a folder or file to my UnRaid share will it automatically sync and upload to Google Drive?
I think I'm close in that I can see the contents of my GDrive share on a local pcd mapped to a network share to the unraid server, but I don't see how to have an unraid folder mounted to the google drive folder. Thank you for any assistance!

Run the command 'rclone version' and share the full output of the command.

rclone v1.66.0

  • os/version: slackware 15.0+ (64 bit)
  • os/kernel: 6.1.79-Unraid (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.22.1
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Google Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

N/A

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[BackupToGoogleDrive]
# couldn't find type of fs for "BackupToGoogleDrive"
root_folder_id = 1QHx...Fud2
scope = drive
client_id = 1038832737283-....apps.googleusercontent.com
client_secret = GOCS...aSE
token = {"access_token":"ya29.a0AXooCgv...:40:50.839639887-05:00"}
team_drive = 

A log from the command that you were trying to run with the -vv flag

N/A

Have a look at rclone bisync:

Thank you! If I could edit the original post again I would, I'm actually less interested in bidirectional although it could be useful.
What I can't wrap my head around is mapping a folder or share that lives on the unraid server to the root_folder_id on google drive. (Rclone is running on the unraid server).

Not sure what exactly you want to achieve. Could you maybe show some example? How it would work?

LocalPC File ----> Copy it into a folder on an UnRaid server with RClone running ----> Automatically uploads into Google Drive folder

This I guess you can do using SMB/NFS share

period crontab job with rclone sync should suffice IMO

1 Like

In my rclone config output post above it says "Couldn't find type of fs for BackupToGoogleDrive". And when I type rclone lsd BackupToGoogleDrive: it says Failed to create filesystem for BackupToGoogleDrive: didn't find section in config file. Yet that's the only section there is. What do I have wrong?

edit - when I run the command with --log-level DEBUG it points me to an .rclone.conf file, and that is the one I included up top with a section for [BackupToGoogleDrive].

edit 2 - more output

root@SERVER:~# rclone listremotes
BackupToGoogleDrive:
root@SERVER:~# rclone lsd BackupToGoogleDrive:
2024/06/12 22:07:50 Failed to create file system for "BackupToGoogleDrive:": didn't find section in config file

Could you run:

rclone lsd BackupToGoogleDrive: -vv

and post output here

Not sure how you created it...

try to add

type = drive

under [BackupToGoogleDrive] line.

Yes, type = drive was missing; I discovered and added that late last night but forgot to update the post with findings. Here is the output:

root@SERVER:~# rclone lsd BackupToGoogleDrive: -vv
2024/06/13 06:34:59 DEBUG : rclone: Version "v1.66.0" starting with parameters ["rcloneorig" "--config" "/boot/config/plugins/rclone/.rclone.conf" "lsd" "BackupToGoogleDrive:" "-vv"]
2024/06/13 06:34:59 DEBUG : Creating backend with remote "BackupToGoogleDrive:"
2024/06/13 06:34:59 DEBUG : Using config file from "/boot/config/plugins/rclone/.rclone.conf"
2024/06/13 06:34:59 DEBUG : 6 go routines active

So all works now?

1 Like

YES!! After a little more digging. Your info about running the sync command was the missing piece.
THANK YOU! Now to setup a cron job to run every so often and find a way to buy you a coffee.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.