Re: remote tar via ssh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



try this,

/usr/bin/rsync -avz root@xxxxxxxxxxxx/var/spool/mail/ /var/spool/mail/

this says you rsync to machien 192.168.0.22 from your loacl box and copy /var/spool/mail of remote box(192.168.0.22)  to /var/spool/mail/ of local box.



On 9/29/07, Les Mikesell <lesmikesell@xxxxxxxxx> wrote:
ann kok wrote:
> Hi Les
>
> I am trying to use rsync
>
> 1/ Are both machine to have rsync installed?

Yes, and the remote side needs ssh access.


> 2/ machine A#rsync -essh machineB:/ .
> I try this command but what wrong I am
>
> rsync -essh root@machineB:/ .
> skipping directory /.
> client: nothing to do: perhaps you need to specify
> some filenames or the --recursive option?
>

Sorry - the command should really be more like:
rsync -essh -av root@machineB:/ .

If you specify a directory as the target, you must specify recursive
also, but '-a' is a special option that includes many of the other
options, including recursion.   You probably also want --one-file-system
  or some --excludes to avoid taking /proc, though.

--
   Les Mikesell
    lesmikesell@xxxxxxxxx
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



--
Thank you
Indunil Jayasooriya
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux