rsync and running scripts

becca23 ronumber23 at hotmail.com
Wed Jun 11 13:48:49 GMT 2008


Would you do this using the ssh -s option? also, would this run the script
before or after rsync completes?

Michal Soltys-2 wrote:
> 
> becca23 wrote:
>> I'm using the rsync protocol to keep a windows and linux system mirrored.
>> I
>> have set up the rsync and ssh to run properly, but I would like to know
>> if
>> there is an option, whether in the rsync command or placed in the
>> rsyncd.conf file where I can call a script that runs each time rsync
>> executes? The reason i need to do this is to change the
>> groups/permissions
>> of files when they are transferred over. I could just set this script to
>> run
>> every minute or so, but I would rather strive for accuracy by just having
>> it
>> run every time rsync completes a run through.
> 
> What about initiating the transfer on the receiving side ? This way - a 
> script and a cron job (or some batch file and task scheduler, if it's on 
> windows side) would do the thing nicely. Or if it must be sending side, 
> just ssh remote command (script) to do any cleanup you might need after 
> rsync transfer completes.
> -- 
> Please use reply-all for most replies to avoid omitting the mailing list.
> To unsubscribe or change options:
> https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
> 
> 

-- 
View this message in context: http://www.nabble.com/rsync-and-running-scripts-tp17765400p17778067.html
Sent from the Samba - rsync mailing list archive at Nabble.com.



More information about the rsync mailing list