Re: Copy files of the same name - keep newest one

From: Aaron W Morris (aaronmorris@MINDSPRING.COM)
Date: Fri Mar 28 2003 - 16:45:51 EST


rsync would be a suitable tool for this task.

At 10:53 AM 3/28/2003 -0500, you wrote:
>Hi all;
>
>I migrated the contents of one server's /home filesystem to another server
>several weeks ago. Now I need to go back through and copy any files that
>were created/modified on this old server - onto the new server, without
>affecting/overwriting the existing files on this new server. So basically
>I need to compare time stamps of the files on the old/new servers before
>the file is copied.
>
>Does anyone know, if I use "cp -Rhp", will it overwrite the pre-existing
>files? Or will it compare timestamps before copying?
>
>Does anyone know of a better method for accomplishing this task?
>
>Thank you in advance for your time and assistance;
>Theresa

Aaron W Morris
decep
PGP Key ID: 259978D1



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:42 EDT