Bug 4183 - rsync not recursive when using -a in combination with --files-from
rsync not recursive when using -a in combination with --files-from
Status: RESOLVED INVALID
Product: rsync
Classification: Unclassified
Component: core
2.6.8
x86 Linux
: P3 normal
: ---
Assigned To: Wayne Davison
Rsync QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
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.