try this, <br><br>/usr/bin/<span id="st" name="st" class="st">rsync</span> -avz <span id="st" name="st" class="st"></span><span id="st" name="st" class="st"></span>root@192.168.0.22/var/spool/mail/ /var/spool/mail/<br><br>
this says you rsync to machien <a href="http://192.168.0.22">192.168.0.22</a> from your loacl box and copy /var/spool/mail of remote box(<a href="http://192.168.0.22">192.168.0.22</a>)  to /var/spool/mail/ of local box. <br>
<br><br><br><div><span class="gmail_quote">On 9/29/07, <b class="gmail_sendername">Les Mikesell</b> <<a href="mailto:lesmikesell@gmail.com">lesmikesell@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
ann kok wrote:<br>> Hi Les<br>><br>> I am trying to use rsync<br>><br>> 1/ Are both machine to have rsync installed?<br><br>Yes, and the remote side needs ssh access.<br><br><br>> 2/ machine A#rsync -essh machineB:/ .
<br>> I try this command but what wrong I am<br>><br>> rsync -essh root@machineB:/ .<br>> skipping directory /.<br>> client: nothing to do: perhaps you need to specify<br>> some filenames or the --recursive option?
<br>><br><br>Sorry - the command should really be more like:<br>rsync -essh -av root@machineB:/ .<br><br>If you specify a directory as the target, you must specify recursive<br>also, but '-a' is a special option that includes many of the other
<br>options, including recursion.   You probably also want --one-file-system<br>  or some --excludes to avoid taking /proc, though.<br><br>--<br>   Les Mikesell<br>    <a href="mailto:lesmikesell@gmail.com">lesmikesell@gmail.com
</a><br>_______________________________________________<br>CentOS mailing list<br><a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br><a href="http://lists.centos.org/mailman/listinfo/centos">http://lists.centos.org/mailman/listinfo/centos
</a><br></blockquote></div><br><br clear="all"><br>-- <br>Thank you<br>Indunil Jayasooriya<br>