On Fri, Mar 23, 2001 at 10:03:21AM -0500, Magdalena Hewryk wrote:
> Hi,
>
> I use rsync to mirror host1 to host2 but unfortunately it is not what it has
> to be done.
>
> I need to copy over from host1 to host2 ONLY those files which where changed
> on host1 from the last rsync run. Rsync should not check and compare files
> on host2 at all. We are changing http:// and other configurations on host2
> for those files so they are going to be always different than on host1.
>
> The goal is to copy from host1 to host2 only those files which where changed
> on host1 from the last rsync run.
> I hope I can use rsync to do this task.
>
> Please advise.
> Thanks,
> Magda
>
> this is the syntax I use for syncing but not for promoting ...
> RSYNC_COMMAND="/usr/local/bin/rsync --rsync-path=/usr/local/bin/rsync --rsh
> "/usr/bin/rsh" -apvDlHog --stats --exclude-from=${EXCLUDE_LIST}"
Take a look at -u or --update which only updates files that are newer on
the sending side than the receiving side. Files that are newer on the
receiving side (and of course files that haven't been modified at all) are
left alone.
- Dave Dykstra