I successfully set up rclone with my Google Drive account (I precise that because I don't know anything almost about code, I'm an absolute novice).
I looked everywhere but didn't find anyone who had solved my problem. I am using my Google Drive as a storage for my work (I'm a photographer) and it saves everything automatically to my server (Synology). BUT I want another copy on my external hard drive for backup and also access to my files if I don't have internet.
That's why I'd like to have the same process with my external hard drive when I plug it into my Macbook, I would like my Google Drive to sync automatically in one direction (Google Drive -> External Hard Drive) when I plug my Hard Drive.
I mention my NAS but it's not part of the problem. The NAS automatically copies what I add to my Google Drive.
What I need is rclone to automate the copy of my files from Google Drive to my External Hard Drive when I plug it in and then keep downloading again when I plug it in back another day.
So I understand that :
rclone copy gdrive: /volumeUSB1/usbshare1-1
will re-download all the files, but is it going to not copy what's already on the External Hard Drive? Because I already have a big part copied in this hard drive.
the purpose is to make it automatic when I plug the Hard Drive. Is this even possible?
From there you just want to run a rclone copy or sync (depending on your preference and needs) from GDrive to the external drive.
Basically you can use copy if you want to download new stuff but do not delete anything already in your external drive if it's not in your GDrive. Sync would make the external drive look exactly as GDrive, removing any files you removed from GDrive as well.
Now, you need to understand the sync command might take some time to run, specially if you have slow internet etc. And you should not remove the drive until the sync is completed. It might be starter to do the sync manually and just run the script when you need the files to be synced and you know you will be online for a while with reliable internet and allowing you to connect and disconnect the drive to work as needed without having a script potentially overwriting your files.
Also consider that any changes you do to the files in the external hard drive will be lost when you resync with the items on GDrive as you are talking about a one way sync.
Thanks for guiding me there, I set up the script rclone copy and it worked well. Then I was trying to follow what you showed me, it looked like everything was working. I wanted to restart the Macbook and plug it in to check if it's working correctly, but now the Hard Drive is not recognized by the Finder
It's kinda weird, when I write on the terminal "disk list" it doesn't show me anything as long as the external hard drive is plugged in, then when I unplug it, the internal disk of my Macbook appears...