[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Duplicating a file system / re: ** Emegancy Request **



Nathan E Norman wrote:

> On Fri, Aug 18, 2000 at 12:17:28AM +0300, Shaul Karl wrote:
> > For some reason that I do not understand the authors of the "Hrad Disk
> Upgrade
> > Mini How-To" claim about this or very similar one that
> >
> >       Previous versions of the Mini How-To stated that you could also
> >       use "tar" to copy the disk, but this method was found to have a
> bug.
>
> tar doesn't deal well with device files.
>
> --
> Nathan Norman         "Eschew Obfuscation"          Network Engineer
> GPG Key ID 1024D/51F98BB7           http://home.midco.net/~nnorman/
> Key fingerprint = C5F4 A147 416C E0BF AB73  8BEF F0C8 255C 51F9 8BB7

This command will take care of duplicating everything including device
files and permissions:
find <source dir> -mount | cpio -dumpv <target dir>

Use -mount if you only want to copy the source partition. (This ignores
other mount points).

--
Dan Griffiths
Unix Systems Support Specialist
Unisys (NZ) Ltd.

Cell: +64 25 605 3748
Phone: +64 4 462 2805    Fax:   +64 4 462 2836

Ignore the following unless you use pgp encryption.
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.3ia

mQCNAzlZDz8AAAEEALg78glZXO14WTk7cv4knFn6Q2tKkLu5pUgxwvDjVagGC/sn
buaEFnDsO7Bgjcz5KPeaqfb3ibbBHKSa0IbuGUUirsxaRmWxsVv25/bulnHRagqH
MjumOHMSzEth03XQy+WOcI1bpvS9blhcOWMR/fqgrEghCotA80InYNL2WTiJAAUR
tCtEYW4gR3JpZmZpdGhzIDxkYW4uZ3JpZmZpdGhzQG56LnVuaXN5cy5jb20+iQCV
AwUQOVkPP0InYNL2WTiJAQEHqgP9GwnqMVbQLxw03hOAIZoLC+vgB94hwHoyHDLo
zcGTdHyiSHLjwOBoL+zDby3nBFT/DxgRGLHeTzUbx9hW98sRGoTlT2DVACqgm51A
ctUPEPATsl+JLLYOW1K2FtLzAI44rUdXMCIVhMYCmdBzrYTFauqm6YT5lfxBeXqB
so4MG1M=
=XJdK
-----END PGP PUBLIC KEY BLOCK-----




Reply to: