bugrdiff-backup - Bugs: bug #34126, CLI options inflexible

 
 

bug #34126: CLI options inflexible

Submitter:  None
Submitted:  Wed 24 Aug 2011 10:58:33 PM UTC
   
 
Category:  None Severity:  2 - Minor
Item Group:  None Status:  Duplicate
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 24 Feb 2020 03:47:24 PM UTC, comment #2: 

I assume that this will be addressed via https://github.com/rdiff-backup/rdiff-backup/issues/280 (if not we would probably not be able to address it without much effort, and wouldn't address it anyway).

Eric L. <ericzolf>
Group administrator
Fri 12 Feb 2016 09:59:16 AM UTC, comment #1: 

postponed for migration to github

david kempe <davekempe>
Group administrator
Wed 24 Aug 2011 10:58:33 PM UTC, original submission:  

The parse_cmdlineoptions() function enforces an ordering in the options that isn't clear from the documentation. Generally speaking, options (--compare-hash) should be allowed in any order and only required arguments ([source destination], [statfile1 statfile2 ...], etc) should need to have an ordering enforced.

Python's OptParse was released in Python 2.3 and exists up until 2.7. It's deprecated for argparse, which is available in Python 2.7 and Python 3+.

I suspect we don't want to require Python 2.7, but we can probably stomach dropping support for Python 2.2 and prior.

Expected Behaviour:
$ rdiff-backup backup/ -l
increments.2011-08-23T12:00:04-05:00.dir   Tue Aug 23 12:00:04 2011
increments.2011-08-24T12:00:05-05:00.dir   Wed Aug 24 12:00:05 2011
increments.2011-08-24T14:47:58-05:00.dir   Wed Aug 24 14:47:58 2011
Current mirror: Wed Aug 24 17:19:17 2011
$ rdiff-backup -l backup/
increments.2011-08-23T12:00:04-05:00.dir   Tue Aug 23 12:00:04 2011
increments.2011-08-24T12:00:05-05:00.dir   Wed Aug 24 12:00:05 2011
increments.2011-08-24T14:47:58-05:00.dir   Wed Aug 24 14:47:58 2011
Current mirror: Wed Aug 24 17:19:17 2011

Observed Behaviour
$ rdiff-backup backup/ -l
Fatal Error: File server-bak does not look like an increment file.
Try restoring from an increment file (the filenames look like
"foobar.2001-09-01T04:49:04-07:00.diff").

Anonymous

 

(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)
  •  

    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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-02-24 ericzolf Open/ClosedOpen Closed
    2020-02-24 ericzolf StatusPostponed Duplicate
    2016-02-12 davekempe Severity3 - Normal 2 - Minor
        StatusNone Postponed

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code