RSYNC

Matt McCutchen matt at mattmccutchen.net
Mon Dec 3 01:43:04 GMT 2007


On Sun, 2007-12-02 at 16:47 -0800, KJB1 wrote:
> If I try:
> 
> rsync -lptgoD -e "ssh -i /root/.ssh/rsync-key" --verbose --exclude="/*.*"
> --exclude="*.xml" --include="+ */Tariff/"
> 192.168.1.1:/home/e-smith/files/ibays/frogs/files/dbs/
> 
> rsync lists the correct files, but if I add the destination like this:
> 
> rsync -lptgoD -e "ssh -i /root/.ssh/rsync-key" --verbose --exclude="/*.*"
> --exclude="*.xml" --include="+ */Tariff/"
> 192.168.1.1:/home/e-smith/files/ibays/frogs/files/dbs/
> /home/e-smith/files/ibays/frogs/files/dbs/
> 
> Then we get:
> 
> skipping directory /home/e-smith/files/ibays/yesbookit/files/dbs/.
> client: nothing to do: perhaps you need to specify some filenames or the
> --recursive option?

You need to pass --recursive to make rsync traverse the source directory
and copy its contents.  The first command worked because, in listings,
rsync shows at least the top-level contents of the source directory
regardless of whether you pass --recursive.

Matt



More information about the rsync mailing list