[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Weird dd error..
- Subject: [ale] Weird dd error..
- From: hirsch at mathcs.emory.edu (hirsch at mathcs.emory.edu)
- Date: Wed, 14 Jul 1999 12:59:54 +0000 (GMT)
> At 03:41 PM 04/16/1999 -0400, Mike Fletcher wrote:
> If I want to move over all the data on that drive, what would the
> full tar command be?
>
> cd / ; tar -cf /dev/stdout . | (cd /disk2 ; tar -xf /dev/stdin)
I usually use a dashes instead of /dev/stdout and /dev/stdin. Also, depending
on your configuration you might need -l (--one-file-system) to keep tar from
following mounts across partitions.
On linux I find that the more intuitive "cp -ax / /disk2" works very well.
"-a" means "all" so it copies everything, preserving all permissions, etc.
"-x" is again --one-file-system, so it doesn't copy filesystems mounted on /.
--Michael