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

Re: [leafnode-list] Moving a spool folder

Cornelius Krasel <krasel@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

: 1) cp -a is equivalent to cp -dpR

: 2) cp -d
:               Copy symbolic links as symbolic links  rather  than
:               copying  the files that they point to, and preserve
:               hard link relationships between source files in the
:               copies.

: Disclaimer: I've never tried this :-p

: --Cornelius.

It's a simple matter to copy directory heirarchies with cpio.  cpio,
in pass-through mode when run as root, will properly preserve user and
group ownerships, permissions, links (hard and symbolic), pipes,
sockets and device special files.

Assuming you wished to copy the files from the ficticious directory
/original to /newdir, it would be like this:

cd /original
find . -print | cpio -pdumv /newdir

 Michael | mfaurot  | Happiness is a positive cash flow.
 Faurot  | atww.org | 

leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list