As per this article, I am able to get nautilus integration with google drive and can manually copy files into google drive via the GUI, however I would like to be able to write a small shell script to do backups periodically via cron
. I cannot seem to find where this is actually mounted?
Via nautilus I see it at google-drive://[email protected]/
however am a bit confused how this is actually connected/mounted so nautilus can see it and where I can cp
files to?
Nautilus integration with google drive uses GVfs (abbreviation for GNOME Virtual file system). You can find GVfs mountpoints in:
where XXXX is the UID of your user.
In my computer, google drive mountpoint is on
/run/user/1000/gvfs/...
.You can find the list of GVfs mounted filesystems running the following command:
If you want copy Google Drive files using terminal, you must use the
gvfs-copy
command insteadcp
.As despicted here, there are specific
gvfs-...
type commands to process files in remote locations.