Remote archiving with tar over ssh

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



On 8/12/05, Les Mikesell <lesmikesell@xxxxxxxxx> wrote:
> On Fri, 2005-08-12 at 11:52, James B. Byrne wrote:
> 
> > d. I cannot get tar to pipe find'ed files to the remote server over
> > ssh.
> >
> > My current command line looks like this.
> >
> > find / -name "*.conf" | xargs -t tar -zcvf - | ssh \

Why not:
$rsync -avzP -e ssh -n --exclude-from=somefile /path/to/your/source
ip:/path/to/remote

some file is:
+ *.conf
- *.*

path to source is your directory from where you wan to export - say /home
path to remote is target directory where home is to be compied - say /
Note: no ending "/"
This will do a dry run on the screen. Once you are satisfied with the
files you are getting remove -n from above and the job will be done.

man rsync for details.

Sorry this went away from what you were attempting.
-- 
Sudev Barar
Learning Linux

[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