You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For large syncs, calculating the MD5s of all the files can take many hours, even though only a few GB has changed. A feature to cache the MD5 based on size+modified time would be very helpful.
Amazon Drive dosen't support mod time, but does store checksums. I have an 8TB sync that takes a day to calculate the checksums for, it would be nice to calculate them once and only update them if the modtime has changed. Right now I'm using --size-only, but that's not useful for disk images so I have to sync those manually.
I quite like the idea of having a cache for a remote, so you could have a cache for the local file system or a cache for the remote filesystem or both.
I was thinking of something simple, like if file.ext.md5 exists and it's modtime is newer than file.ext, read it and compare it against the checksum from the remote API instead of calculating it again. If file.ext.md5 dosen't exist or is older than the file modtime, calculate it and store. Or a even single file listing path/md5 would work fine as well, maybe specified in a --checksum-file argument.
Seems pretty easy to implement, I just haven't been able to wrap my head around Go enough to do it yet.
The main problem I'm having is that Amazon Drive doesn't support modtime and my sync consists of hundreds of 40+GB files. It looks like a few other remotes calculate and store checksums for you too so the feature could be used on those too.
Having a hashsum cache for the local filesystem is a useful feature, but it's covered in more details by issue #949
Remote hashsums are provided instantly by storage providers.
Instead of caching them we could just add the SUM file support, which is covered by issue #157
I suggest to close this request in favor of #949 and #157
I think this is covered by #949 and #157 certainly so we should close this one.
In the long term I want to be able to serialize objects to disk and then to be able to wrap any backend in a vfs cache - this will solve the caching md5 problem.
Activity
Technifocal commentedon Aug 19, 2016
Under what situations? For instance, when I pass
--checksum, I am explictly stating, as per the manual:-Skip based on checksum & size, not mod-time & sizeKeyword "not mod-time & size". Your implementation would still use mod-time & size.
mb300sd commentedon Aug 19, 2016
Amazon Drive dosen't support mod time, but does store checksums. I have an 8TB sync that takes a day to calculate the checksums for, it would be nice to calculate them once and only update them if the modtime has changed. Right now I'm using --size-only, but that's not useful for disk images so I have to sync those manually.
ncw commentedon Aug 25, 2016
I quite like the idea of having a cache for a remote, so you could have a cache for the local file system or a cache for the remote filesystem or both.
It would be tricky to implement though!
mb300sd commentedon Aug 25, 2016
I was thinking of something simple, like if file.ext.md5 exists and it's modtime is newer than file.ext, read it and compare it against the checksum from the remote API instead of calculating it again. If file.ext.md5 dosen't exist or is older than the file modtime, calculate it and store. Or a even single file listing path/md5 would work fine as well, maybe specified in a --checksum-file argument.
Seems pretty easy to implement, I just haven't been able to wrap my head around Go enough to do it yet.
The main problem I'm having is that Amazon Drive doesn't support modtime and my sync consists of hundreds of 40+GB files. It looks like a few other remotes calculate and store checksums for you too so the feature could be used on those too.
ivandeex commentedon Mar 18, 2021
Having a hashsum cache for the local filesystem is a useful feature, but it's covered in more details by issue #949
Remote hashsums are provided instantly by storage providers.
Instead of caching them we could just add the SUM file support, which is covered by issue #157
I suggest to close this request in favor of #949 and #157
cc @ncw
ncw commentedon Mar 23, 2021
I think this is covered by #949 and #157 certainly so we should close this one.
In the long term I want to be able to serialize objects to disk and then to be able to wrap any backend in a vfs cache - this will solve the caching md5 problem.
ivandeex commentedon Sep 9, 2021
Will re-close by merging a patch