Gustin Johnson wrote:
> Of course not, just running "cp *" from within the directory you are
> copying will only select regular files (ie. ones that do not start with
> ".").
>
> Doing a cp -a on the directory itself would be the easiest way to
> accomplish what you want.
>
> Personally, I no longer use cp, rsync does everything I need an more.
>   

Hi Gustin :)

okay, 'normally' I'm using rsync too. I didn't run cp *, but cp -a * and 
it failed. Now I'll test rsync -r, resp. rsync -rvu.

spinymouse-s...@64studio:~$ mkdir ~/.mozilla/firefox/--TEST--.#2
spinymouse-s...@64studio:~$ ls -al ~/.mozilla/firefox
total 24
drwx------ 5 spinymouse-sudo spinymouse-sudo 4096 2009-05-01 11:57 .
drwx------ 4 spinymouse-sudo spinymouse-sudo 4096 2009-04-29 13:53 ..
drwx------ 7 spinymouse-sudo spinymouse-sudo 4096 2009-05-01 09:55 
3ehxz5yh.default
-rw-r--r-- 1 spinymouse-sudo spinymouse-sudo  154 2009-05-01 09:55 
profiles.ini
drwxr-xr-x 2 spinymouse-sudo spinymouse-sudo 4096 2009-05-01 11:57 
--TEST--.#2
drwx------ 7 spinymouse-sudo spinymouse-sudo 4096 2009-05-01 10:49 
v9wrr9jd.#1
spinymouse-s...@64studio:~$ rsync -rvu 
.mozilla/firefox/3ehxz5yh.default/ .mozilla/firefox/--TEST--.#2
sending incremental file list
.parentlock
[snip]

Hm, rsync is fine, it copied .parentlock too.

Anyway, cp failed and it shouldn't fail.

The lesson is clear: cp is unsafe, using Nautilus or rsync will do the job.

Cheers,
Ralf
_______________________________________________
64studio-users mailing list
[email protected]
http://lists.64studio.com/mailman/listinfo/64studio-users

Reply via email to