SUMMARY: ufsdump/restore across a network (fwd)

From: Kevin Metzger <kevin_at_pmimail.com>
Date: Tue Nov 13 2001 - 16:44:00 EST
Sydney was quickest to see the error in my ways.

-so close and so far, the above just has a syntax error in it..
-
-ufsdump 0f - . | ( rsh grizzly "cd /export/home/kevin/panda/;ufsrestore xf -"
)

-is what worked and where I wuit trying.

thanks to all that replied.


---------- Forwarded message ----------
Date: Tue, 13 Nov 2001 16:38:37 -0500 (EST)
From: Sydney Weinstein <syd@verne.myxa.com>
To: kevin.metzger@ieee.org
Subject: Re: ufsdump/restore across a network

On Tue Nov 13 16:25:03 2001, Kevin Metzger wrote,
> I would really like the following command to copy files across a network
> without the additional step of mounting and unmounting drives:
> ufsdump 0f - . | ( rsh grizzly;cd /export/home/kevin/panda/;ufsrestore xf - )
> I found this syntax from Elizabeth at
> http://www.sunmanagers.org/pipermail/summaries/2001-May/000649.html
> but sent the output to the screen not to the remote machine.
> 
> I have used 
> ufsdump 0f - . | ( cd /mnt;ufsrestore xf - )
> successfully with the remote drive shared and mounted.
> 
> Any input is welcome and I'll summerize.

so close and so far, the above just has a syntax error in it..

ufsdump 0f - . | ( rsh grizzly "cd /export/home/kevin/panda/;ufsrestore xf -" )

would depend on the shell you run it in, but even better
ufsdump 0f - . | rsh grizzly (cd /export/home/kevin/panda/;ufsrestore xf - )

after all, its the commands being run by the rsh that need the subshell,
not the rsh followed by a ; to end the rsh.

-- 
Sydney S. Weinstein, CDP, CCP
Myxa Corporation                                     http://www.myxa.com
Voice: (610) 234-2600, FAX: (610) 234-2640, email: syd@Myxa.COM
Editor, Ars Ceramica, Wedgwood Society of New York:  http://www.wsny.org

_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Tue Nov 13 15:46:37 2001

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:28 EST