Grive sync on file/folder changes using inotifywait. See https://github.com/Grive/grive and http://www.webupd8.org/2012/05/grive-open-source-google-drive-client.html for info about grive. In Ubuntu you can add the grive-sync script to your startup applications to have it automatically monitor your local Google Drive folder.