Mount Google Drive on a Linux server so automated scripts can read and write files without a browser.
Access Google Drive from the Linux command line to move, copy, or process files with standard shell tools.
Set up two Google accounts as separate mount points and work with both simultaneously from the terminal.
First run opens a browser for Google account authorization, Drive changes may take up to 60 seconds to appear in the mounted folder.
google-drive-ocamlfuse is a Linux tool that lets you mount your Google Drive account as a local folder, so you can browse and work with your Drive files the same way you would with any folder on your computer. Rather than opening a web browser or using a separate application to upload and download files, you get a regular directory that your other programs can read from and write to directly. FUSE stands for Filesystem in Userspace, a standard Linux mechanism for creating virtual filesystems without needing administrator-level kernel changes. This tool uses that mechanism to make Google Drive appear as a mounted volume, similar to how an external USB drive or a network share appears. It supports full read and write access to regular files and folders. Google Docs, Sheets, and Slides are available as read-only and are exported to configurable file formats when accessed. Other features include support for multiple Google accounts, symbolic links, access to your Drive trash folder, and compatibility with shared content and Team Drives. First-time setup involves running the tool without any arguments, which opens a web browser to authorize it with your Google account. After that, you create a local directory and mount Drive into it with a single command. Unmounting works with the standard Linux fusermount command. Multiple accounts can each have their own mount point and configuration directory. The tool is written in OCaml and is available as a pre-built package for Ubuntu through a PPA, or can be built from source. Google Drive changes are not reflected instantly in the mounted folder, as the tool checks for updates from the server roughly every 60 seconds.
← astrada on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.