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
Renaming files triggers a re-download in the client #201
As far as I understand, this would require conceptual changes in the server and/or the client: Current server implementations do not track a rename (and therefore can't notify clients of one); and since the client doesn't check the file contents, it doesn't have the possibility to detect renames.
Yeah, i think so. But this is a killer feature, which i would expect from a file syncing solution.
A good starting point could be to look at the rsync algorithms, including the fuzzy checksums and such stuff.
We would need a concept of unique ID per file on the server, just like we have inode on the client.
Then it would require important changes in the client as the fact that rename can only happen one way makes it much easier.
The files can be tracked by hashes (e.g. sha1), and stored in a database.
Alterantively, using inotify can inform the client of such file changes.
Is there a plan for implementing this? Dropbox, for example, not only detects renames, but it also detects when copies are made so that a copy will be made locally from an existing file rather than re-downloading the same file
this should be combined. inotify should prevent hashing, when its not needed, but when a file was moved while mirall is not running, it should first ask the server, if the hash is known and send some move request.
can possibly be combined with:
deduplication
incremental updates (using some algorithm, which can split the file, until the common parts have the same hash and only upload the other parts)
Not sure I'm writing this under the correct issue - should I open a new bug report instead?
I use ownCloud 6.0.3 as server and 1.6.0rc3 as client (both on OpenSUSE 13.1), but renamed files/folders are detected 50% of times at best. Is there something yet to be improved in this area?
Activity
RandolfCarter commentedon Dec 27, 2012
As far as I understand, this would require conceptual changes in the server and/or the client: Current server implementations do not track a rename (and therefore can't notify clients of one); and since the client doesn't check the file contents, it doesn't have the possibility to detect renames.
allo- commentedon Dec 27, 2012
Yeah, i think so. But this is a killer feature, which i would expect from a file syncing solution.
A good starting point could be to look at the rsync algorithms, including the fuzzy checksums and such stuff.
danimo commentedon Jul 8, 2013
@dragotin this can be closed now, right?
dragotin commentedon Jul 8, 2013
I thought so, with @ogoffart 's patch. But I just tried and the new file ist still downloaded.
ogoffart commentedon Jul 8, 2013
We would need a concept of unique ID per file on the server, just like we have inode on the client.
Then it would require important changes in the client as the fact that rename can only happen one way makes it much easier.
alecz20 commentedon Jul 27, 2013
The files can be tracked by hashes (e.g. sha1), and stored in a database.
Alterantively, using inotify can inform the client of such file changes.
Is there a plan for implementing this? Dropbox, for example, not only detects renames, but it also detects when copies are made so that a copy will be made locally from an existing file rather than re-downloading the same file
allo- commentedon Jul 27, 2013
this should be combined. inotify should prevent hashing, when its not needed, but when a file was moved while mirall is not running, it should first ask the server, if the hash is known and send some move request.
can possibly be combined with:
dragotin commentedon Oct 21, 2013
See owncloud/core#3593
ogoffart commentedon Dec 10, 2013
owncloud 6 and mirall 1.5 implement support for server moves.
atroxix commentedon May 30, 2014
Not sure I'm writing this under the correct issue - should I open a new bug report instead?
I use ownCloud 6.0.3 as server and 1.6.0rc3 as client (both on OpenSUSE 13.1), but renamed files/folders are detected 50% of times at best. Is there something yet to be improved in this area?
atroxix commentedon Jul 4, 2014
It still happens very often, basically most of the times. Using both servers 6.0.3 and 7.0beta1, and Mirall 1.6.1.
Can the issue be re-opened?