On 07/16/2010 08:16 AM, Roger Oberholtzer wrote:
On Sat, 2010-07-17 at 00:39 +0930, Rodney Baker wrote:
On Sat, 17 Jul 2010 00:03:28 Roger Oberholtzer wrote:
On Fri, 2010-07-16 at 10:27 -0400, James Knott wrote:
Rodney Baker wrote:
Copy (or, better still, rsync) everything from/usr/share/ to /overflow/share. If you use rsync -Cavvh you will preserve ownership and permissions and get verbose human-readable progress reports as you go.
Doesn't cp -av also do that?
Yes it does. I would use cp. rsync is only needed if doing this between two different machines over a network.
But with rsync if, for some reason, the copy operation is interrupted and you're not sure exactly what has or has not been copied, you simply re-issue the command and it will only copy those files that don't exist or differ between source and destination (for example, a partially copied file). That is the main reason that I chose to use rsync (I also use it scripted for daily backups of my /home partition to a removable drive, but that is another story).
True. But do you often encounter problems copying between two disks on the same machine? I have only had good luck with cp. Also, if the cp fails, you can do the rsync next. cp is faster. Still, being Linux, there is always more than one way to accomplish something!
I've had problems with cp copying the "contents" of symbolic links, rather than just creating the link itself. This behavior can be overridden at the command line, of course, but you need to remember to do it. Regards, Lew -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org