On Tue, 5 Nov 2002 14:38:33 -0500 (EST)
Net Llama! <[EMAIL PROTECTED]> wrote:
> It should be faster with dd:
> dd if=/dev/sda7 of=/dev/sdb1 bs=1024
>
> On Tue, 5 Nov 2002, steve rader wrote:
> > > From: steve rader
> > > - (cd /master; tar -cf - .) | (cd /slave; tar -xpf -)
You should not use tar as it is bad about special files. There is a specific
mode of cpio designed to do this right. It would be my choice. The syntax
(also in the cpio info docs) is:
mkdir /slave
cd /master
find . -depth -print0 | cpio --null -pvd /slave
All files will be made proper in dest. tar does not make all types of files.
To make it less wordy, I replace the -v option to cpio with -V
The -print0 and -null options work together to allow file names that even
contain newline or other unexpected characters.
--
+============================+===============================+
| Roger Oberholtzer | E-mail: [EMAIL PROTECTED] |
| OPQ Systems AB | WWW: http://www.opq.se/ |
| Erik Dahlbergsgatan 41-43 | Phone: Int + 46 8 314223 |
| 115 32 Stockholm | Mobile: Int + 46 733 621657 |
| Sweden | Fax: Int + 46 8 302602 |
+============================+===============================+
_______________________________________________
Linux-users mailing list
[EMAIL PROTECTED]
Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users