Google-drive-ocamlfuse: Use without local storage

Created on 20 Jul 2016  路  24Comments  路  Source: astrada/google-drive-ocamlfuse

Hi,

First I would like to apologize, my question can be ridiculous . I would like to use google-drive-ocamlfuse only to send and access the files in the cloud, without saving them locally. Is it possible to do that?

I'm making a storage system for internal use on my company. I'm using OwnCloud and I would like to use google drive for storing files instead of storing on my server.

Thanks,

question

All 24 comments

I think you can set stream_large_files=true and large_file_threshold_mb=1. So it will stream all the files which are larger than 1MB.

Thank you Ittus for your quick response, I will try this right now! I'll return to post the result.

Thank you so much Ittus I did everything work properly. I have only one question. Doing that I will have my files stored on my server or just on google?

I have a very limited space locally. Currently I'm using something around 500TB in the cloud. The files that are already on Gdrive will be synchronized locally?

Thank you so much. If anyone needs help with this, for sure, I will be available to help, just contact me.

With stream_large_files=true files are stored locally only if you have to upload them. Otherwise, they will not be downloaded in the local cache.

Hi astrada thank for your quick response. Understand that, thanks. But will the files be temporarily allocated in my local disk when uploading files?

Yes, correct. As Google Drive only accepts the entire file during an upload, there is no way to upload single chunks individually. I have to store the whole file in the local cache before being able to start the upload.

Thank you again astrada. All my question where answered. I will make this work. If anyone needs help, please contact me.

Hi. I have a similar case as @mateussaggin and I am wondering if there's a local copy stored if I move from a local folder /tmp/file1.bin to the mounted folder? The reason I want to use it is to free space locally by uploading to Drive.

Do I need to set stream_large_files=true for this to work as I want?
Do I need to remount if I set stream_large_files=true for it to take affect?
What happens if I set stream_large_files=true with the already moved files?

thanks!

No, sorry. Uploading requires copying the entire file to the cache, streaming options work only when downloading resources.

Thanks for your reply.
But will the cache be emptied once the file is uploaded (it's fine for me to temporarily keep the file)

If max_cache_size_mb is below the file size, the next time you upload/download a file, the bigger file should get evicted from cache (if it doesn't do so, it's a bug).

@astrada

No, sorry. Uploading requires copying the entire file to the cache, streaming options work only when downloading resources.

I'm downloading files to mounted google drive. Is it possible not to save files to local cache?

Yes, you should set stream_large_files to true in config. If a file is bigger than large_file_threshold_mb, it will be streamed instead of fully downloaded to the local cache.

@astrada

I set stream_large_files to true and large_file_threshold_mb to 1. Then the size of the downloaded file in google drive is the same as the local cache. Why?

After modifying the configuration, you should restart the application.

Sorry again. How should I restart the application? should I mount it again?

Yes, correct.

Again. The cache file size (0B5F-rbY1D1XCWU5VcEZsWklFcXc) is the same as my downloaded file in google drive. Did I do something wrong?

Previously cached files won't be removed, if you want you can remount with -cc to clear the local cache.

I cleaned the cache, and remount again but local cache is still generated when I download files.

Some files will still be downloaded: files smaller than 1MB and Google Docs

I download YouTube videos with youtube-dl to mounted google drive. The cache file size is the same as the downloaded video. Maybe you can have a try.

Ah, I see. You are uploading files to Google Drive. So, no, I'm sorry, it's not possible to upload files without caching them on disk first.

What a pity.... Thanks, anyway. If so, this application is almost the same as gdrive.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

abrambailey picture abrambailey  路  7Comments

maltokyo picture maltokyo  路  3Comments

kevinjpickard picture kevinjpickard  路  3Comments

mouzzampk2014 picture mouzzampk2014  路  4Comments

dmusican picture dmusican  路  4Comments