[IPOL discuss] Flexible rsync script

Miguel Colom Miguel.Colom at cmla.ens-cachan.fr
Thu May 19 17:47:57 CEST 2011

Hi all,
I've written an small (4 lines) BASH script to update demo directories in
the fuchsia demo server. I think it can be useful to editors.

It allows to update just parts of the demo directory tree, without having
to overwrite the rest of the files.

It needs no parameters. One has to be in the directory that must be
updated and then invoke the script.

The script expects that the local directory structure matches the one in
fuchsia, although it's not required that the home directory nor the user
names are the same.

For example, let's suppose that I want to update the templates directory
of the noise estimation demo, and nothing else.
What I should do is going to my local templates directory and execute the

miguel at pringle:~/ipol/demo/app/noise_estimation/template$ ipolRsync.sh
sending incremental file list
created directory /home/colom/ipol/demo/app/noise_estimation/template

sent 2556 bytes  received 91 bytes  5294.00 bytes/sec
total size is 7059  speedup is 2.67

These are the contents of ipolRsync.sh:

rsync -avz --delete -e ssh ~/${noHome}/ fuchsia:~/${noHome}/
--exclude=.git --delete-excluded --copy-links

I hope this is useful to editors.


More information about the discuss mailing list