in-situ conversion to FT disk config?
Ben Scott
dragonhawk at gmail.com
Tue Nov 15 17:24:01 EST 2005
On 11/15/05, Bill McGonigle <bill at bfccomputing.com> wrote:
> cp -a will ruin your hardlinks.
"cp -a" preserves hardlinks in the version *I* have.
$ rpm -qf `which cp`
coreutils-4.5.3-26
$ mkdir testdir
$ cd testdir
$ mkdir source
$ cd source
$ touch foo
$ ln foo bar
$ cat bar
$ echo hello > foo
$ cat bar
hello
$ ..
$ mkdir target
$ cp -a source target/
$ cd target/source
$ ls -l
total 8
-rw-r--r-- 2 bscott users 6 Nov 15 17:14 bar
-rw-r--r-- 2 bscott users 6 Nov 15 17:14 foo
$ cat foo
hello
$ cat bar
hello
$ echo goodbye > foo
$ cat bar
goodbye
$
All that being said, I never use hard links myself, so I had to go
and double-check this before I was sure. One more example why real
backups are important... :)
-- Ben "All my posts come with a money-back guarantee" Scott
More information about the gnhlug-discuss
mailing list