At 21:13:35 on Saturday Saturday 25 April 2009, Daniel Bauer
On Saturday 25 April 2009 19:32:14, Stan Goodman wrote:
As you are copying files, you should be better using a file copy tool, like rsync. Or even midnight commander. Or you could use clonezilla.
Why is any one of these better than the simple cp, which knows very well how to copy files?
rsync will also keep all file attributes (owner etc.) and links correct, while cp will copy a file when there is only a link (as much as I know).
regards, Daniel
Thanks. Actually, as I read the "help" file for rsync, you have to tell it what to do with links, out of a large repertoire of possibilities. I wouldn't want to copy links anyway, in the present case: a file that's far enough away that one would want to link to it is apt not to be in the /home directory at all. But rsync knows how to deal with that too. I have to study this help file thoroughly, as well as the man page. The cp command, BTW, also has a way to preserve file attributes. -- Stan Goodman Qiryat Tiv'on Israel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org