summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2004-06-06 23:16:04 +0000
committerbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2004-06-06 23:16:04 +0000
commit75305e02f6d4d3d5b7249de04473b1edbab865f8 (patch)
treef0d1456a605caaf1f9c1f0e462e1825b4149b693
parentd6c90c435702ef3e297933ce481f89e4dc53f56b (diff)
downloadrdiff-backup-75305e02f6d4d3d5b7249de04473b1edbab865f8.tar.gz
Added --{include|exclude}-globbing-filelist-stdin options
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@555 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
-rw-r--r--rdiff-backup/rdiff_backup/Main.py28
1 files changed, 19 insertions, 9 deletions
diff --git a/rdiff-backup/rdiff_backup/Main.py b/rdiff-backup/rdiff_backup/Main.py
index d591436..0554faa 100644
--- a/rdiff-backup/rdiff_backup/Main.py
+++ b/rdiff-backup/rdiff_backup/Main.py
@@ -57,15 +57,17 @@ def parse_cmdlineoptions(arglist):
"compare", "compare-at-time=", "current-time=", "exclude=",
"exclude-device-files", "exclude-filelist=",
"exclude-filelist-stdin", "exclude-globbing-filelist=",
- "exclude-mirror=", "exclude-other-filesystems",
- "exclude-regexp=", "exclude-special-files", "force",
- "group-mapping-file=", "include=", "include-filelist=",
- "include-filelist-stdin", "include-globbing-filelist=",
- "include-regexp=", "list-at-time=", "list-changed-since=",
- "list-increments", "list-increment-sizes",
- "never-drop-acls", "no-acls", "no-compare-inode",
- "no-compression", "no-compression-regexp=", "no-eas",
- "no-file-statistics", "no-hard-links", "null-separator",
+ "exclude-globbing-filelist-stdin", "exclude-mirror=",
+ "exclude-other-filesystems", "exclude-regexp=",
+ "exclude-special-files", "force", "group-mapping-file=",
+ "include=", "include-filelist=", "include-filelist-stdin",
+ "include-globbing-filelist=",
+ "include-globbing-filelist-stdin", "include-regexp=",
+ "list-at-time=", "list-changed-since=", "list-increments",
+ "list-increment-sizes", "never-drop-acls", "no-acls",
+ "no-compare-inode", "no-compression",
+ "no-compression-regexp=", "no-eas", "no-file-statistics",
+ "no-hard-links", "null-separator",
"override-chars-to-quote=", "parsable-output",
"print-statistics", "remote-cmd=", "remote-schema=",
"remove-older-than=", "restore-as-of=", "restrict=",
@@ -96,6 +98,10 @@ def parse_cmdlineoptions(arglist):
elif opt == "--exclude-globbing-filelist":
select_opts.append((opt, arg))
select_files.append(sel_fl(arg))
+ elif opt == "--exclude-globbing-filelist-stdin":
+ select_opts.append(("--exclude-globbing-filelist",
+ "standard input"))
+ select_files.append(sys.stdin)
elif (opt == "--exclude-other-filesystems" or
opt == "--exclude-regexp" or
opt == "--exclude-special-files"): select_opts.append((opt, arg))
@@ -111,6 +117,10 @@ def parse_cmdlineoptions(arglist):
elif opt == "--include-globbing-filelist":
select_opts.append((opt, arg))
select_files.append(sel_fl(arg))
+ elif opt == "--include-globbing-filelist-stdin":
+ select_opts.append(("--include-globbing-filelist",
+ "standard input"))
+ select_files.append(sys.stdin)
elif opt == "--include-regexp": select_opts.append((opt, arg))
elif opt == "--list-at-time":
restore_timestr, action = arg, "list-at-time"