大网数据广告活动
服务器运维问答

Using google drive to dynamically expand VPS storage

· 52CE 我爱测

I was wondering if anyone ever tried using the free online storage services such as Mega, Google Drive or Dropbox to dynamically increase the "small" storage provided with cheap VPS services. What I mean by "dynamically" is that …

问题原文

原帖链接 · R3D34THR4Y · CC BY-SA 3.0

I was wondering if anyone ever tried using the free online storage services such as Mega, Google Drive or Dropbox to dynamically increase the "small" storage provided with cheap VPS services.

What I mean by "dynamically" is that whenever I upload something on my server (via SCP for example) it would transfer the file to, let's say, Google Drive, then delete the file from the server and whenever the server needs the file, it would temporarily download it from GDrive (which is fast considering data-centers bandwidth)

Basically giving a path to a Google Drive folder on linux without downloading the folder. Kinda like showing a Google Drive folder as a network storage/NAS
I think this might have been done before but I didn't find a thread about it.

Thanks in advance

已采纳解答

原帖链接 · Esa Jokinen · CC BY-SA 3.0

Basically giving a path to a Google Drive folder on linux without downloading the folder.

This kind of functionality has a name: mounting. Mounting a filesystem means making it accessible at a certain point in the Linux directory tree. It is possible to Mount Google Drive in Linux with OCamlfuse.

  1. Install OCamlfuse.

  2. Allow and give permission to application gdfuse OAuth2 to access your Google account. Start the process with command:

    google-drive-ocamlfuse 
    
  3. Create a directory and mount Google Drive, e.g.

    mkdir ~/google-drive 
    google-drive-ocamlfuse ~/google-drive
    

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-06-03)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。