Well I tried that and ti didn't work either BUT...
all of this did give me enough understanding to derive the correct 
combination.

ssh [EMAIL PROTECTED] tar -cf - $REMOTEDIRECTORY |cat 
>$LOCALDIRECTORY/$REMOTEHOSTNAME/$TARFILENAME

Thanks for the help....

On Tuesday 22 July 2003 15:27, Samuel Flory wrote:
> System Administrator wrote:
> >On Monday 21 July 2003 18:25, Samuel Flory wrote:
> >>System Administrator wrote:
> >>>I need to backup a Solaris 8 system (actually parts therein) to a RH8
> >>> box. I am currently doing that using a simple scp (secure copy) script.
> >>> The RH8 filesystem is ext3.
> >>>
> >>>Question 1) When I copy the files over (all normal files), they occupy
> >>> 2-3 times the space.  Why?
> >>>
> >>>Question 2) is there a cleaner way to do this?  I read recently where
> >>>someone suggested rsync.  I am investigating whether that is an option
> >>> on the Solaris side.
> >>
> >>  Use tar.
> >>
> >>tar czvpf  -  (some files, or directory) |ssh [EMAIL PROTECTED] cat
> >>
> >> >my.tarfile.tgz
> >
> >Well It sounded great....unfortunately all it does is create the loccal
> > tar file.
>
>   Forgot the  quote to prevent the shell from stealing the >.
>
> tar czpf - (some files) |ssh [EMAIL PROTECTED] 'cat >foo.tgz'

-- 
Leon Sonntag
Systems Administrator


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to