using rsync for jar file
Wayne Davison
wayned at samba.org
Thu Aug 19 09:10:20 MDT 2010
On Wed, Aug 18, 2010 at 6:18 PM, Vanitha <vanitha at stee.stengg.com> wrote:
> Rsync -r -a -e “ssh -l user at host1” -h /home/xx/dir-name user at host2
> :/home/xx/dir-name
>
It looks like you've duplicated the dir name, so you're looking for
deletions in /home/xx/dir-name and they're happening in
/home/xx/dir-name/dir-name. Either add a trailing slash to the source arg
or remove dir-name from the destination arg.
If your username indeed has an '@' in it, you can just specify it prior to
the 2nd @ for the hostname:
rsync -ah /src/ user at host1@host2:/dest/
However, since your above command results in an extra "-l user" option from
rsync, I assume it's just overriding the -l option you've specified and your
username doesn't actually contain the '@'. Note that the use of ssh is the
default these days, so you can probably drop the -e and its arg.
..wayne..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20100819/729eb4a6/attachment.html>
More information about the rsync
mailing list