Sure you can.  Every time you promote, touch a marker file, as a date reference.  
Then, next promote, run a "find <path> -newer <marker file> -print" into your include 
list, exclude *, and run your rsync with --include-from=<include list> --exclude='/*'.

Tim Conway
[EMAIL PROTECTED]
303.682.4917
Philips Semiconductor - Colorado TC
1880 Industrial Circle
Suite D
Longmont, CO 80501





[EMAIL PROTECTED]@[EMAIL PROTECTED] on 03/23/2001 08:17:33 AM
Sent by:        [EMAIL PROTECTED]
To:     [EMAIL PROTECTED]@SMTP
cc:      
Subject:        how to promote files instead of mirroring  files
Classification: 

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}"






Reply via email to