Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE: offline mode #64

Closed
fommil opened this issue Apr 29, 2014 · 7 comments
Closed

RFE: offline mode #64

fommil opened this issue Apr 29, 2014 · 7 comments

Comments

@fommil
Copy link

fommil commented Apr 29, 2014

It would be really great if this could be setup to work in offline mode with the cache, so that even without an internet connection I can access all my files.

I'd be happy if doing a full sync was a command that I had to run periodically.

@astrada
Copy link
Owner

astrada commented May 5, 2014

I'm sorry but I don't think this feature will be easy to implement. I tried to make everything as lazy as possible avoiding to download unnecessary files and metadata. If I implement the offline mode as is, the risk is to be unable to access the majority of files, unless you explicitly download them all. Have you considered using Grive? It's a tool to sync your Drive content to a local directory.

@fommil
Copy link
Author

fommil commented May 6, 2014

Grive is unusably slow and unmaintained.

What would happen if the user were to do something that loaded all the files in Drive... would all the data then not be available in the cache? And then why not allow this to work when there is no internet connection... e.g. if the connection is flakey.

@astrada
Copy link
Owner

astrada commented May 8, 2014

The problem is that you don't know in which state a cache entry is. And any entry can be invalidated at any time. But you can do an experiment. Put a very large value in the metadata_cache_time, like 100000000 seconds. This way you are sure that the server will not be polled for changes (for al least 100 days). Then do some kind of rsync to a temp dir (that you can remove later) to trigger the download of all the files. This should simulate an offline cache. Let me know it this works for you.

@fommil
Copy link
Author

fommil commented May 10, 2014

@astrada thanks, what if the files are changed in this time? (assume there are no conflicts)

@astrada
Copy link
Owner

astrada commented May 10, 2014

If the changes are client-side changes (and you aren't online) you will get an error. If the changes are server-side, you won't see them. You should consider your offline copy as a read-only mirror of your Drive contents. That's because a FUSE filesystem is a standard filesystem, it does not offer primitives for remote (or distributed) filesystems.

@muranyia
Copy link

muranyia commented May 1, 2015

FYI Grive stopped working a few days ago.

@astrada
Copy link
Owner

astrada commented Sep 12, 2015

There is another project to access Google Drive that should work offline.

@astrada astrada closed this as completed Sep 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants