syncing multiple instances of code in same tree
Matt McCutchen
matt at mattmccutchen.net
Wed Mar 12 00:27:30 GMT 2008
On Tue, 2008-03-11 at 12:42 -0700, jolszews wrote:
> I'd like to sync all instances from an updated version of the code, say,
> /my_code/source_code/latest_instance. My initial thought was to do
> something like this:
>
> rsync -v /my_code/source_code/latest_instance/ /my_code/root_dir/*/
Just use a shell script to update the instances one at a time:
#!/bin/bash
for dest in /my_code/root_dir/*/; do
rsync -v /my_code/source_code/latest_instance/ "$dest"
done
Matt
More information about the rsync
mailing list