Hello, Thank you for this. So would this command (below) insure that if there is a more recent file on the target, with the same name, that cp will not overwrite it? cp -pRuv /mnt/source/data /mnt/target/data Thank you, James -----Original Message----- From: chika@cs.its.ac.id [mailto:chika@cs.its.ac.id] Sent: Thursday, May 03, 2007 9:36 PM To: James D. Parra; opensuse@opensuse.org Subject: Re: [opensuse] the cp command cp -u sourceFile targetFile u can update only the latest file see man cp first (it also work for other command) :D for more strict u can "set -o noclobber" on cli if u don't wanna overwrite the existing file with older o newest file for more info http://www.cyberciti.biz/tips/howto-keep-file-safe-from-overwriting.html always happy being "baka" person.... so i can learn much more cheers, chika
Hello,
I have two directories that are almost identical to each other and I need to copy the contents of the source directory over the to the target directory, but without overwriting any files that are newer on the target. Is there an argument that I can use with the 'cp' command to accomplish this?
I have the following to preserve time stamps and permissions; cp -pRv /mnt/userdir /media/userdir
Thank you,
James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org