astrada / google-drive-ocamlfuse

FUSE filesystem over Google Drive
https://astrada.github.io/google-drive-ocamlfuse/
MIT License
5.52k stars 351 forks source link

Disable caching very large files when uploading #763

Open wallart1 opened 2 years ago

wallart1 commented 2 years ago

I have a very large file (912 GB) that I want to upload to Google Drive. As it turns out, I don't have that much space in any of my file systems to hold the cache file. Is there a way that I can have google-drive-ocamlfuse disable the cache for files like this? Perhaps make the source file read-only during the upload rather than caching?

Thanks for this wonderful project.

EDIT: In case you are wondering, this file is a VeraCrypt volume. I am using VeraCrypt to encrypt my Google Drive.

astrada commented 2 years ago

No, sorry, it isn't possible because the Drive API doesn't allow to upload portions of a file. In your case, I think you should use a tool like https://rclone.org/

askoriy commented 2 years ago

@wallart1 You may use EncFS instead of VeraCrypt. EncFS encrypts every file separately (and crypt filenames by default too), which makes it the best option to operate with google drive or any other cloud storage. Encrypted EncFS tree could be easily synced as a regular folder to a mounted google drive. Moreover, mounting EncFS directly on top of mounted google drive works fine for me :sunglasses: