[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] cpio to backup Raq4
- Subject: [cobalt-users] cpio to backup Raq4
- From: "Hisham Al Saad" <ahisham@xxxxxxxxxxxxxx>
- Date: Fri Dec 7 03:28:17 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
I came through this page
http://www.best.com/~aturner/RedHat-FAQ/DOCS/common5.html which has
information about using 'cpio' to copy directory trees from one place to
another. I thought if this can be used to copy all partitions on a Cobalt
Raq4 server to an NFS mounted storage and if it would create a complete
usable backup of all partitions and files or not.
-------- From URL
above ------------------------------------------------------------
The recommended method of copying directory trees from one place to another
is
to use cpio. It handles symlinks and device files much better than tar or
cp and is the ONLY way to copy the root directory.
Standard syntax is as follows:
cd /source_dir ; find . -depth -print | cpio -pamd /dest_dir
The find command generates an exhaustive list of filenames and pipes them
to
cpio which in turns copies each file to the destination tree.
----------------------------------------------------------------------------
---------------------------------------
Has anyone tried this or has an idea if this will work in restoring any
files or partitions back to a Raq when needed or not ?
Regards,
Hisham