filename "-" read from standard input.
* The rsync:// syntax for daemon connections is now accepted in the
destination field.
* The rsync:// syntax for daemon connections is now accepted in the
destination field.
+ * If the file name given to --include-from or --exclude-from is "-",
+ rsync will read from standard input. (J.W. Schultz)
+
BUG FIXES:
* Fix "forward name lookup failed" errors on AIX 4.3.3. (John
BUG FIXES:
* Fix "forward name lookup failed" errors on AIX 4.3.3. (John
int fatal, int include)
{
struct exclude_struct **list=list1;
int fatal, int include)
{
struct exclude_struct **list=list1;
- FILE *f = fopen(fname,"r");
+
+ if (strcmp(fname, "-")) {
+ f = fopen(fname,"r");
+ } else {
+ f = fdopen(0, "r");
+ }
if (!f) {
if (fatal) {
rsyserr(FERROR, errno,
if (!f) {
if (fatal) {
rsyserr(FERROR, errno,
option, but instead it adds all exclude patterns listed in the file
FILE to the exclude list. Blank lines in FILE and lines starting with
';' or '#' are ignored.
option, but instead it adds all exclude patterns listed in the file
FILE to the exclude list. Blank lines in FILE and lines starting with
';' or '#' are ignored.
+If em(FILE) is bf(-) the list will be read from standard input.
+
dit(bf(--include=PATTERN)) This option tells rsync to not exclude the
specified pattern of filenames. This is useful as it allows you to
dit(bf(--include=PATTERN)) This option tells rsync to not exclude the
specified pattern of filenames. This is useful as it allows you to
dit(bf(--include-from=FILE)) This specifies a list of include patterns
from a file.
dit(bf(--include-from=FILE)) This specifies a list of include patterns
from a file.
+If em(FILE) is bf(-) the list will be read from standard input.
+
dit(bf(-C, --cvs-exclude)) This is a useful shorthand for excluding a
broad range of files that you often don't want to transfer between
dit(bf(-C, --cvs-exclude)) This is a useful shorthand for excluding a
broad range of files that you often don't want to transfer between