Bug 4183 - rsync not recursive when using -a in combination with --files-from
Summary: rsync not recursive when using -a in combination with --files-from
Status: RESOLVED INVALID
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 2.6.8
Hardware: x86 Linux
: P3 normal (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-22 20:12 UTC by Adrian Friedli
Modified: 2006-10-22 20:58 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Friedli 2006-10-22 20:12:29 UTC
rsync does not copy files recursively when -a and --files-from are used together:

adi@stargate:~$ mkdir src dst; touch src/testfile; echo src > files
adi@stargate:~$ rsync -a --files-from=files . dst
adi@stargate:~$ find dst/
dst/
dst/src

But it it's doing is recursively, when an additional -r is given:

adi@stargate:~$ rm -rf dst/; mkdir dst
adi@stargate:~$ rsync -ra --files-from=files . dst
adi@stargate:~$ find dst/
dst/
dst/src
dst/src/testfile
Comment 1 Wayne Davison 2006-10-22 20:58:26 UTC
This is intentional.  Please read the manpage.