Skip to content

Unnecessary redownload of a synced folder carried on a USB stick #5231

Closed

Description

@etiess

As @dragotin suggested me, I report this unnecessary redownload of a synced folder, after having copied it on a new computer through a USB stick.

Steps:

  1. Sync a folder on computer A
  2. Copy the folder on computer B with a USB stick, including the csync_journal.db
  3. Configure the OC sync of this folder on computer B
    Result: the client redownloads the data, instead of seeing that they are already there.

All logs and csync_journal.db (before and after the sync) are available here: https://www.sugarsync.com/pf/D6476655_61894308_919677

This is perhaps related to #523 (Pointless re-sync of entire folder), owncloud/client#994 (client 1.4 unnecessarily downloads again those files which are already downloaded) and owncloud/client#110 (Use MD5 sum to confirm file has changed).

CC @mpfj, @zatricky, @jochenwezel, @danimo, @RandolfCarter may be interested

Activity

  1. dragotin commented on Oct 11, 2013

    @dragotin
    Contributor

    The reason why the files are downloaded again is that the copying changes the inode of the files. And the inode is one of the compare criteria in 1.4.1. We have removed that for the next version.

    Maybe someone wants to retest that with a nightly build?

  2. etiess commented on Oct 11, 2013

    @etiess
    Author
  3. dragotin commented on Oct 11, 2013

    @dragotin
    Contributor

    here we go:
    http://download.owncloud.org/download/nightly/ownCloud-1.4.80-nightly20131011-setup.exe

    BUT: Be warned, this is really still beta software, NEVER use it in a production setup.

    @etiess: There is no need for a sorry and no incompetence. You already have proofed a lot of competence by testing and bug reporting and stuff.

  4. etiess commented on Oct 11, 2013

    @etiess
    Author

    Thanks @dragotin !
    But I have an error after the installation, when I try to launch the program: "QtSql4.dll is missing"
    Mirall 1.4.1 doesn't have any problem.

  5. dragotin commented on Oct 11, 2013

    @dragotin
    Contributor

    ah yes. True. @danimo could you add the missing dll to the windows build?

  6. danimo commented on Oct 11, 2013

    @danimo
    Contributor

    According to the cmake file, it should get deployed. I'll look into it.

  7. dragotin commented on Oct 14, 2013

    @dragotin
    Contributor

    @etiess no it does not come from you, it just means that @danimo has not yet looked into.

  8. hadogenes commented on Oct 23, 2013

    @hadogenes

    I also have this problem, I even write script to change inodes (and others) in .csync_journal.db, but it still redownload all files.
    http://pastebin.com/e0t9VYkG

  9. etiess commented on Oct 29, 2013

    @etiess
    Author

    Hello @dragotin
    I finally tested it again, on the same computer because I don't have any other one to test. Config: Mirall 1.4.2 on Windows 8.1 x64, Server on Ubuntu server 13.10, Mysql, 5.0.12:

    1. Sync a folder A for the Window's user "user1"
    2. Stop Owncloud
    3. Make a copy of A called "A Copy" on the same computer
    4. Configure the sync of "A Copy" for the Window's user "user2"
    5. Mirall recognizes that the folder is already synced, and doesn't download everything again.

    I didn't test it with 2 computers and a USB stick yet, but it should be the same, shouldn't it? If you want to verify that it works as you expected, the log of steps 4 and 5 is here: https://www.sugarsync.com/pf/D6476655_88319109_19579

    The issue should be closed I think, congratulations @dragotin

  10. Omnimercador commented on Jun 19, 2014

    @Omnimercador

    Was able to achieve the above with a USB drive, however: the only way of ensuring that the copies were absolutely identical was to zip the relevant folder before copying.

    Even robocopy did not work (as you gather, I did this in Windows).

  11. etiess commented on Jun 19, 2014

    @etiess
    Author

    @karlitschek
    I confirm what @Omnimercador says: I experienced a partial redownload of my 20 GB in a fresh reinstall of my Windows. My whole folder "pictures" was copied on an external HDD, then copied back on my laptop HDD. And Mirall 1.5.4 decided to redownload about 2 GB from the server (OC 6.0.3).
    I didn't test it ziping it, but I'll know this workaround for the future.
    Is there a way to fix this issue?

  12. dragotin commented on Jun 20, 2014

    @dragotin
    Contributor

    Yes, you need to preserve the file metadata such as modification time. Zipping does that.

  13. etiess commented on Jun 20, 2014

    @etiess
    Author

    OK, good to know. It may be interesting to include this information in the documentation, if it's not already described.
    And I don't understand why Windows would modify the modification time, just copying it?

  14. Omnimercador commented on Jun 20, 2014

    @Omnimercador

    I specifically used robocopy to ensure that file parameters like permissions and date stamps (of files and folders) would remain unchanged. However, that didn't work - my impression was that the folder's parameters are somehow affected, rather than specific files, changing the overall path of a file (although I'm not sure whether that would make a difference, as I don't fully understand how files are compared ;-)! )

  15. locked as resolved and limited conversation to collaborators on Aug 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions