[ale] Best command to copy a mounted filesystem?
Robert L. Harris
Robert.L.Harris at rdlg.net
Sun Apr 13 08:18:37 EDT 2003
You want an image of the filesystem/partition or the contents such with
permissions, etc? If you go with the image you may be sorry, what if
you can't get an identicle replacement disk? You'll loose out.
Use tar or cpio. If you don't want a tarball but want to copy /usr to
/mnt/backups/usr then my prefered method is:
"find /usr -mount -print | cpio -pdmu /mnt/backups/usr"
Robert
Thus spake David Corbin (dcorbin at machturtle.com):
> I want to copy (as in "mirror") a mounted file system for the purposes
> of backup. I can think of a handful of approaches (my first, dd,
> doesn't seem to work). What's the best way to do this. Note: I'm not
> talking about make a .tar file or anything of the sort. I want to
> duplicate the filesystem. True mirroring is not an an acceptable solution.
>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
:wq!
---------------------------------------------------------------------------
Robert L. Harris | PGP Key ID: E344DA3B
@ x-hkp://pgp.mit.edu
DISCLAIMER:
These are MY OPINIONS ALONE. I speak for no-one else.
Diagnosis: witzelsucht
IPv6 = robert at ipv6.rdlg.net http://ipv6.rdlg.net
IPv4 = robert at mail.rdlg.net http://www.rdlg.net
PGP signature
More information about the Ale
mailing list