Thanks for the info. Greg -----Original Message----- From: Simon Oliver [mailto:s.oliver@umist.ac.uk] Sent: Thursday, July 08, 2004 1:14 AM To: 'Greg Wallace' Cc: suse-linux-e@suse.com Subject: RE: [SLE] Backups Greg Wallace wrote:
Thanks. I have used cpio for extracting Oracle patch sets, but never used it going the other direction. Would I just specify /dev/hda3?
Assuming /dev/hda3 is mounted on /usr and you only want to archive the data from that partition then specify the -mount option: find /usr -mount -print | cpio -o -v -H crc > file_or_device But if you want to include any data from other mounted filesystems, say /dev/hda4 is mounted on /usr/local, then omit the -mount option: find /usr -print | cpio -o -v -H crc > file_or_device Of course you can pipe the results of cpio through gzip. Another option is to use mkisofs and burn direct to CD / DVD - this will result in a browseable CD image: mkisofs -R -J /usr | cdrecord -v - However, there are limitations on the depth and length of path names so be careful! Another option is to create an archive and then burn that to CD / DVD, but this requires an intermediate file: mkisofs -R -J /tmp/archive.cpio.gz | cdrecord -v - Using an archiver like tar, cpio, afio, etc is usually more efficient (in terms of storage) than dd and is more flexible than dd because it allows you to restore selected paths. With dd you get an exact copy of the filesystem (including all the free space) and you must restore the complete filesystem. HIH -- Simon Oliver