![]() ![]() 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. SYNC GOOGLE DRIVE BACK TO LOCAL: gsync -r -t -p -o -g -v -progress -delete -l -s drive://folder-a /local/folder-a SYNC LOCAL TO GOOGLE DRIVE: gsync -r -t -p -o -g -v -progress -delete -l -s /local/folder-a drive://folder-a 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: 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. ![]()
0 Comments
Leave a Reply. |