On Wed, Aug 19, 2009 at 12:14 PM, ms<[email protected]> wrote:
> I'll get this error:
> --  rsync error: syntax or usage error (code 1) at options.c(1647)
> [client=3.0.5]
>
> when I try to call rsync this way (all paths are okay, sbfiles.txt
> exists):
>
> rsync -avhr --delete --files-from=/home/sm/sbfiles.txt /media/disk/
> home
>
> Can somebody tell me why?

Not sure why that does not work.  Here's a positive test case that
worked for me:

$ mkdir -p a/b/
$ touch a/b/foo.txt
$ find a/ -type f > sbfiles.txt
$ mkdir a1
$ tree .
.
|-- a
|   `-- b
|       `-- foo.txt
|-- a1
`-- sbfiles.txt

3 directories, 2 files
$ rsync  -avhr --delete --files-from=sbfiles.txt ./ a1/
building file list ... done
a/
a/b/
a/b/foo.txt

sent 163 bytes  received 54 bytes  434.00 bytes/sec
total size is 0  speedup is 0.00
$ tree .
.
|-- a
|   `-- b
|       `-- foo.txt
|-- a1
|   `-- a
|       `-- b
|           `-- foo.txt
`-- sbfiles.txt

5 directories, 3 files

Try simplifying your rsync command to the point where it works and
then start adding stuff back in.

Regards,
- Robert

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup
-~----------~----~----~----~------~----~------~--~---

Reply via email to