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
{{ message }}
Repository navigation
Delta-sync, or sync only changed bytes in a file #417
Delta Sync would be great for my truecrypt/veracrypt huge files (~30-100gb). Without delta sync I must stay absent from this product.
Delta Sync would also provide you a feature to distinguish from owncloud
Couldn't there be an optional (maybe extension / folder / file -based) mechanism to perform Delta Sync ("optionally" as I agree that Delta Sync does not make sense for all kind of files/folders)? Maybe even using something existing like rsync?
Reacted by Vinay Sastry, GSchenck, Thomas Steinbach, Frank, Eric Enold, Ralle, Ben Creasy, maverick74, adi-dev, Michael Hamburger and 89 more
Reacted by ⁂ Tommi, Michael Keck and AlleyPally
Reacted by ⁂ Tommi, AlleyPally, Alan Savage, Michael Keck and sokai
I have looked into zsync (client rsync). If we would ever implement such a feature it will most likely will be using that. Since you have to offload all the computation to the client side else you will kill the server.
I don't know about truecrypt/veracrypt. But actually most container formats (and encrypted is even worse). don't lend themself particually well for delta sync. Since often a small change results in a a lot of changed bytes.
That is an interesting feature for virtual images. Are there any experiences with encrypted containers and diff sync tools?
One annoying thing about the sync-process is that you must transfer the files through the client. You can't just place them from a hard disk or use a faster transfer mechanism. Therefore many ask for a diff-sync feature but the ability to compare files (based on a hash-sum) would already help a lot of these people and it's much easier to implement.
I don't mind at all to offload all the computation to the client side, as long as such feature is made available!!! We, actually, consider this a very important feature for business!
To have an idea in a 0-10 scale what would be the cost (not monetary) of developing this?
Tks
Reacted by Ruslan Gainutdinov, GSchenck, Michael Hamburger, Joel Kåberg, tourshi, cocowalla and TacticalFreak
@cowai you either need to keep a copy of your last sync around (using file-system specific things like shadow copy seems out of the question for the broad range of platforms with sync clients) or you have to do block-level syncing instead, like "syncthing" does it.
I think block-level syncing like syncthing is probably the easiest implementation in code, and perhaps the cheapest to write. I'm seriously interested in this, and I know some companies that are too (Quickbooks files man...ugly stuff). Like @Bigpet said, you'd need a copy of the file before changes onhand, or put some hooks into writes that go into that specific directory, but the latter sounds very messy and dangerous. I wish I knew how to write code better because I would 100% do this..I'm definitely a Kindergarten koder compared to a lot of people that put stuff on github. Thought I'd voice that there's interest on my end, and on the end of local companies I know.
In regards to the delta sync feature, is there some technical limitation that prevents us from taking the code from OwnCloud and applying it here? Have the code paths diverged too significantly to make this unviable in comparison to writing the code from scratch?
@csolisr try reading the linked issue above to get an idea of where this is at in terms of SabreDAV (which is what owncloud and nextcloud rely on afaik). Seems delta sync support is still experimental in terms of Owncloud, but I haven't used it.
Hopefully this is enough info for us to stop replying here as idle chatter. 😅
I'm guessing we'll get an update in either thread eventually.
Activity
rullzer commentedon Jul 15, 2016
I have looked into zsync (client rsync). If we would ever implement such a feature it will most likely will be using that. Since you have to offload all the computation to the client side else you will kill the server.
I don't know about truecrypt/veracrypt. But actually most container formats (and encrypted is even worse). don't lend themself particually well for delta sync. Since often a small change results in a a lot of changed bytes.
exokkk commentedon Jul 15, 2016
I can only speak for truecrypt (but suppose that veracrypt does the same): if you change 1MB within the container the whole file changes only a bit more than 1MB as well (I am very sure about this). Also not even password changes would change the whole file, only little parts, refer https://news.ycombinator.com/item?id=6523286 and http://crypto.stackexchange.com/questions/18479/how-does-truecrypt-change-password-without-the-need-for-a-complete-re-encryption
So Delta Sync + Truecrypt (veracrypt) is a really perfect combination.
Although I can see that this feature will not be desired from many people there are some cases, like mine, where it would be great. Maybe there are other cases that I/we cannot think of but exist. Not sure, but VM images might profit from delta sync as well for example. Also, for some files you might uncompress -> compare -> delta_sync -> compress_server_side_again [ok this might be a too costly action, I do not know. This would work for e.g. *.pptx etc as well]
Clientside computation seems rational to me.
Thanks for considering the feature in any future release.
tflidd commentedon Jul 16, 2016
That is an interesting feature for virtual images. Are there any experiences with encrypted containers and diff sync tools?
One annoying thing about the sync-process is that you must transfer the files through the client. You can't just place them from a hard disk or use a faster transfer mechanism. Therefore many ask for a diff-sync feature but the ability to compare files (based on a hash-sum) would already help a lot of these people and it's much easier to implement.
maverick74 commentedon Dec 13, 2016
I don't mind at all to offload all the computation to the client side, as long as such feature is made available!!! We, actually, consider this a very important feature for business!
To have an idea in a 0-10 scale what would be the cost (not monetary) of developing this?
Tks
wudimenghuan commentedon Jan 19, 2017
Dropbox and Onedrive have delta sync.
Seafile have delta sync, but it cause files broken.
I hope you see the rsync. I do need delta sync
ariselseng commentedon Feb 16, 2017
@rullzer How would the client have the previous file for calculating the delta?
Bigpet commentedon Mar 23, 2017
@cowai you either need to keep a copy of your last sync around (using file-system specific things like shadow copy seems out of the question for the broad range of platforms with sync clients) or you have to do block-level syncing instead, like "syncthing" does it.
stratacast commentedon Apr 13, 2017
I think block-level syncing like syncthing is probably the easiest implementation in code, and perhaps the cheapest to write. I'm seriously interested in this, and I know some companies that are too (Quickbooks files man...ugly stuff). Like @Bigpet said, you'd need a copy of the file before changes onhand, or put some hooks into writes that go into that specific directory, but the latter sounds very messy and dangerous. I wish I knew how to write code better because I would 100% do this..I'm definitely a Kindergarten koder compared to a lot of people that put stuff on github. Thought I'd voice that there's interest on my end, and on the end of local companies I know.
eglipeter commentedon Jun 5, 2017
Are there concrete plans when delta syncing will be available? May I hope to see this implemented in Nextcloud 13 already?
gschenck commentedon Oct 18, 2017
There is some progress on owncloud:
owncloud/core#16162
ahmedammar commentedon Oct 26, 2017
@gschenck Please feel free to try out the latest code, the core implementation should be complete now.
jkaberg commentedon Oct 26, 2017
@ahmedammar any plans on submitting the PR against NC as well further down the road?
ahmedammar commentedon Oct 26, 2017
@jkaberg once the work is complete and merged in oC I can have a look, assuming the code-base isn't too different at the core ...
maverick74 commentedon Nov 28, 2017
@ahmedammar can you give us an update about the feature? (If possible a probable ETA?)
51 remaining items
jggc commentedon May 1, 2023
Since there is no mention of this use case yet in this thread : CAD files.
We are creating a lot of .rvt files that are 99% block duplicates of previous versions.
With current client it takes a few minutes to sync, with Syncthing it takes 2-3 seconds.
I opened a forum thread about our specific setup but just posting here to keep this alive and maybe bring a business use case with it.
I would be interested in backporting the fixes from owncloud if some people are ready to sponsor this.
rrauenza commentedon May 10, 2023
Adobe Lightroom database is another one. It's an sqlite database that mostly just gets appends.
csolisr commentedon Oct 29, 2024
In regards to the delta sync feature, is there some technical limitation that prevents us from taking the code from OwnCloud and applying it here? Have the code paths diverged too significantly to make this unviable in comparison to writing the code from scratch?
sunjam commentedon Oct 29, 2024
@csolisr try reading the linked issue above to get an idea of where this is at in terms of SabreDAV (which is what owncloud and nextcloud rely on afaik). Seems delta sync support is still experimental in terms of Owncloud, but I haven't used it.
Hopefully this is enough info for us to stop replying here as idle chatter. 😅
I'm guessing we'll get an update in either thread eventually.
chore: sync changes for Apps management migration to settings (nextcl…
tuefue commentedon Feb 6, 2026
This feature is important for working with Microsoft Access databases. Is there any progress on this issue?
feat(external): seed Lucide icon library + download link for External…
Merge pull request #19 from avuz-conecta/deck417-external-icon-library