5

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://my.email@gmail.com/ however am a bit confused how this is actually connected/mounted so nautilus can see it and where I can cp files to?

mgilbert
  • 153
  • 1
  • 5

1 Answers1

5

Nautilus integration with google drive uses GVfs (abbreviation for GNOME Virtual file system). You can find GVfs mountpoints in:

/run/user/XXXX/gvfs

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:

gvfs-mount --list -i

If you want copy Google Drive files using terminal, you must use the gvfs-copy command instead cp.

As despicted here, there are specific gvfs-... type commands to process files in remote locations.

wensiso
  • 151