#165 Display currently processed directory

2.5.0
open
Denis Corbin
None
Implemented
5
2014-07-25
2013-06-02
Martin Zuther
No

Hi Denis,

I'm missing a "--verbose=directory" switch which lists the directory currently processed by dar. I find that the normal "--verbose" switch (which lists the currently processed FILE) is too verbose, but I'd still like to see how much of the backup has finished already.

Should be a simple thing to implement, too... :)

Thanks,

Martin

Discussion

  • Martin Zuther
    Martin Zuther
    2013-07-08

    I just had another idea. What about showing the currently processed directory and - when finished - adding its size. Like this:

    /home/foo/processed/first .... 149 MB
    /home/foo/processed/second .... 2 MB
    /home/foo/processed .... 168 MB
    /home/foo/current ....
    

    This would be great for troubleshooting, as one could look for really big directories or ones where size has changed dramatically.

    I'm not sure whether this could be easily done or not...

    Martin

     
  • Denis Corbin
    Denis Corbin
    2013-08-25

    • status: unread --> open
    • assigned_to: Denis Corbin
     
  • Denis Corbin
    Denis Corbin
    2013-08-25

    I understand the need :)

    Cheers,
    Denis.

     
  • johnr
    johnr
    2014-03-20

    When using compression adding space saved to output would be cool.

    Also, having a other thread walk the directories to get a rought size and file count could enable a % progress. With throughput, it could estimate time left.

    When doing incremental: % base on total filesize and number of files and number of dirs compared to the one in the catalogue.

     
  • Denis Corbin
    Denis Corbin
    2014-07-22

    • Progression: requested --> development
     
  • Denis Corbin
    Denis Corbin
    2014-07-22

    the --verbose=dir is now implemented. It only displays the current directory treated.
    Next step, will be to add the amount of space and compression ratio per directory... under work.

     
  • Martin Zuther
    Martin Zuther
    2014-07-22

    Thanks a lot! I'll try this out on the next update of dar...

    Martin

     
  • Denis Corbin
    Denis Corbin
    2014-07-25

    • Progression: development --> Implemented
     
  • Denis Corbin
    Denis Corbin
    2014-07-25

    at archive creation time using the -vd (--verbose=dir) switch now displays the total amount of bytes saved in each directory as well as the compression ratio.

    the listing operation now shows for each directory the average compression ratio of files and subdirectories it contains.
    the summary (dar -l <archive> -q) reports the overall average compression ratio

    This new features will be available with release 2.5.0

    Cheers,
    Denis.

     
  • Denis Corbin
    Denis Corbin
    2014-07-25

    I forgot to mention, the -vd option displays a line for each directory before dar starts saving it (at that stage no info about space and compression ratio is available). Due to the hierarchical nature of directories it is not possible to append compression ratio information once it is finished, because a directory may have subdirectory which would require an new line to be displayed.

    For that reason a second switch -vf activates the display of a line for each completed directory this time with the total amount of space saved and average compression ratio for that directory.

    -vt and -vf can be used alone or at the same time.