Subject: Re: copying entire directory to another filesystem
To: Brett Lymn <blymn@baesystems.com.au>
From: David Brownlee <abs@netbsd.org>
List: current-users
Date: 05/23/2000 11:50:36
On Tue, 23 May 2000, Brett Lymn wrote:

> According to Thilo Manske:
> >
> >Anyway, I use dump|restore:
> >dump 0f - <dir1>|(cd <dir2>;restore xf -)
> >
> 
> *ahem* make that:
> 
> dump 0f - <dir1>|(cd <dir2> && restore xf -)
> 
> otherwise if you botch the <dir2> argument you may end up restoring
> into your current working directory.  Admittedly this is not 100%
> foolproof because it will function if the fumbled <dir2> exists but it
> does give a bit of extra insurance.

	Better still:
	cd /filesystem2_mountpoint
	dump 0f - /filesystem1_mountpoint | restore xf -

		David/absolute
				       -- www.netbsd.org: No hype required --