Hello Mitry Thanks for your email with 'rsync' options. Actually the style and the options you provided, I myself use same kind of script in my mirror. It is easy to maintain even when I want to change or remove any option a hash '#' is enough before the line is enough. 'rsync' is a program, which you can play in thousand way. I send the script for the new comer of our CentOS Mirror Maintainer. Once day are become expert, they will automatically find out they best way for him/her. Anyway, thanks for your script. It make my own knowledge base regarding 'rsync' reach. With Best Wishes Ahamed Bauani HP: +880-1818-BAUANI (SMS Only, No Direct Call Please) ----------------------------------------------------------------------------------------------------------------- Give Me Sunshine, Give Me Some Rain, Give Me a Chance to Grow up Again On Sun, Nov 21, 2010 at 2:23 AM, Mitry Matyushkov <ftp at mgts.by> wrote: > Hi, > > On 11/20/2010 3:40 PM, Bangladeshi CentOS Mirror Maintainer > [BD-SERVERS.NET] wrote: >> Hi >> >> You can do it with rsync itself. Here is the script attach with this >> email (text attachment name CentOS-5-Only-Mirror.sh.txt ). I have to >> make it attachment, as it was breaking the line on my compose window. >> >> Anyway, You can just use rsync to update all the things.. > > I do believe that single rsync does the trick: > > rsync -avzH --delete-delay \ > -f '+_/5/' \ > -f '+_/5.5/' \ > -f '+_/timestamp.txt' \ > -f '+_/TIME' \ > -f '+_/RPM-GPG-KEY-CentOS-5' \ > -f '-_/*' \ > msync.centos.org::CentOS/ /var/www/mirror/centos/ > > > Regards, > Mitry. > _______________________________________________ > CentOS-mirror mailing list > CentOS-mirror at centos.org > http://lists.centos.org/mailman/listinfo/centos-mirror >