bugrdiff-backup - Bugs: bug #43858, rdiff-backup-statistics: nB...


bug #43858: rdiff-backup-statistics: nB qualifier for --begin-time and --end-time fails

Submitted by:  Cheetah <churten>
Submitted on:  Sat 20 Dec 2014 08:32:12 PM UTC  
Category:  None Severity:  1 - Wish
Item Group:  None Status:  Postponed
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Fri 12 Feb 2016 08:58:49 AM UTC, comment #1: 

Feature request to add the number of backups (nB) as an arguement to rdiff-backup-statistics

david kempe <davekempe>
Project Administrator
Sat 20 Dec 2014 08:32:12 PM UTC, original submission:  

The nB form for time qualifiers does not work for the --begin-time or --end-time options:

# rdiff-backup-statistics --begin-time 0B $PWD
Traceback (most recent call last):
  File "/usr/bin/rdiff-backup-statistics", line 461, in <module>
    if __name__ == '__main__': error_check_Main()
  File "/usr/bin/rdiff-backup-statistics", line 449, in error_check_Main
  File "/usr/bin/rdiff-backup-statistics", line 434, in Main
  File "/usr/bin/rdiff-backup-statistics", line 41, in parse_args
    if opt == "--begin-time": begin_time = Time.genstrtotime(arg)
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/Time.py", line 228, in genstrtotime
    return time_from_session(int(timestr[:-1]), rp)
  File "/usr/lib/python2.7/dist-packages/rdiff_backup/Time.py", line 192, in time_from_session
    session_times = Globals.rbdir.conn.restore.MirrorStruct \
AttributeError: 'NoneType' object has no attribute 'conn'

The same essential error happens regardless of what n is, and regardless if used for the begin or end time filter.

The ability to use this syntax is very handy for e.g. answering "why was the last backup unexpectedly large".

Cheetah <churten>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by davekempe (Posted a comment)
  • -email is unavailable- added by churten (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-02-12 davekempe Severity3 - Normal => 1 - Wish
        StatusNone => Postponed

    Back to the top

    Powered by Savane 3.5