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

 
 

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

Submitter:  Cheetah <churten>
Submitted:  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:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 20 May 2022 05:45:13 PM UTC, comment #2: 

This issue has been closed because it hasn&#039;t been touched for years, as the development continued on GitHub. If the issue is still present in a recent version, please re-open it under https://github.com/rdiff-backup/rdiff-backup/issues after having made that it&#039;s not already reported there.

Eric L. <ericzolf>
Group administrator
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>
Group 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
    Main()
  File "/usr/bin/rdiff-backup-statistics", line 434, in Main
    parse_args()
  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:
   
   
Comment:
   

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 ericzolf (Posted a comment)
  • -email is unavailable- added by davekempe (Posted a comment)
  • -email is unavailable- added by churten (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-05-20 ericzolf Open/ClosedOpen Closed
    2016-02-12 davekempe Severity3 - Normal 1 - Wish
        StatusNone Postponed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code