![sync folders google drive sync folders google drive](https://jameshasanswers.com/b/wp-content/uploads/2020/10/image-3.png)
Gsync -r -t -p -o -g -v -progress -delete -l -s /vault/Documents/ drive://Documents > $LOGĮcho "Sync Google Drive with Local:" > $LOG The only issues I have run into are file permissions after being synced from Google Drive to local (which are addressed in the script below), and a file will occasionally sync two days in a row (even though it never changed).Įcho "Sync local with Google Drive:" > $LOG It has been solid for the last week or so. Right now I have all the output redirected to a log file and sent to me via email so I can keep an eye on it and make sure it is behaving as expected. I set this up in a simple bash script and have it run once a day via a cron job. Gsync -r -t -p -o -g -v -progress -delete -l -s drive://folder-a /local/folder-a
![sync folders google drive sync folders google drive](https://www.free-online-converters.com/blog/2020/06/2576-4.jpg)
To create a two way sync between a local folder and Google Drive you simply run the command twice, reversing the directory order like this: You can get a full list of options by typing: delete = delete extraneous file from destination directories progress = Show progress during transfer The options are similar to rsync options, here is a list of the options I used above: Gsync -r -t -p -o -g -v -progress -delete -l -s /local/folder-a drive://folder-a Once authenticated you can sync a local folder with Google Drive like so: Once installed, you have to authorize gsync to access your Drive, run the following command and follow the directions:
SYNC FOLDERS GOOGLE DRIVE INSTALL
You can easily install gsync on Fedora (yum or dnf): There is a tool available call gsync, which provides rsync like functionality with Google Drive. I figured I would share this post with anyone who might be looking for a similar function. I finally have a half decent way have a two way sync with a local folder on my Linux machine and Google Drive.