Menu

#136 File/Directory Change Detection

none
closed
None
abandoned
6
2017-12-31
2011-02-15
No

When you start cleaning your workspace, you might be moving files and directories, maybe rename aswell. In that case, dar does almost full backup, instead of incremental. Because dar stores file checksums, it know that two files are same.

Thus, when finding known (during incremental archiving against former archive) file in different part of filesystem tree, only it's movement shall be noted, not storing whole file again.

Discussion

  • sampablokuper

    sampablokuper - 2013-12-08

    Is anybody working to implement this feature request?

     
  • Denis Corbin

    Denis Corbin - 2017-09-18

    Hi,

    detecting moved files would cost a lot of CPU and/or memory: Assuming you have N files under backup, for each missing file, it would require N comparison, this a complexity in O(n2). If just one file is found to be missing during a differential backup (which target is to be quick), dar would have to read the whole filesystem again, doing hash on each file (to save time if a second file is missing too) and store this possibly large set of hash file in memory (dar policy is to not use temporary files: Adding temporary files raises other concerns like disk space, permission, and partition location, with an additional drawback on performance due to disk I/O generated).

    Saving a moved file from time to time is more efficient than having a backup process much slower and much fond of memory to possibily save a few bytes (worse case scenario is moving many small files).

    Cheers,
    Denis

     
  • Denis Corbin

    Denis Corbin - 2017-09-18
    • Progression: requested --> abandoned
    • km stone :): --> none
     
  • Denis Corbin

    Denis Corbin - 2017-12-31
    • status: open --> closed
     

Log in to post a comment.