cp: will not create hard link ?????
I try to backup some files from directory called 'mytext' with the following command :
#find . -mtime -1 |xargs cp -r --target-directory=/mytext --parents
and i got error message:
cp: will not create hard link `/mytext/tarz' to directory `/mytext/./tarz'
cp: will not create hard link `/mytext/love' to directory `/mytext/./tarz/love'
But if i go into /mytext and do:
#cp ~/xarg/* /mytext
i dont' get any error message. Did i write my find command wrongly? I tried use cp -a , but the result stil the same(both command did copy files i 'touch')
can anyone explain to me why cp will create error message regarding hardlink while there is no link file existed ?
thx in advance
Last edited by taiwf; 09-15-2005 at 06:12 PM.