[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Rdiff-backup-bugs] [bug #34126] CLI options inflexible
From: |
anonymous |
Subject: |
[Rdiff-backup-bugs] [bug #34126] CLI options inflexible |
Date: |
Wed, 24 Aug 2011 22:58:34 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:9.0a1) Gecko/20110819 Firefox/9.0a1 |
URL:
<http://savannah.nongnu.org/bugs/?34126>
Summary: CLI options inflexible
Project: rdiff-backup
Submitted by: None
Submitted on: Wed 24 Aug 2011 10:58:33 PM UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
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").
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?34126>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Rdiff-backup-bugs] [bug #34126] CLI options inflexible,
anonymous <=