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! -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org