Good to Know Database

Shell Skript: CentOS 5.0 Download Script


###########################################################################
##                                                                       ##
##                      CentOS 5.0 Download Script                       ##
##                                                                       ##
## Creation:    26.11.2004                                               ##
## Last Update: 03.08.2007                                               ##
##                                                                       ##
## Copyright (c) 2004-2007 by Georg Kainzbauer <http://www.gtkdb.de>     ##
##                                                                       ##
## This program is free software; you can redistribute it and/or modify  ##
## it under the terms of the GNU General Public License as published by  ##
## the Free Software Foundation; either version 2 of the License, or     ##
## (at your option) any later version.                                   ##
##                                                                       ##
###########################################################################
#!/bin/bash

SOURCE_ADDONS=rsync.hrz.tu-chemnitz.de::ftp/pub/linux/centos/5.0/addons/
DESTINATION_ADDONS=/data/nfs/linux/centos/5.0/addons/

SOURCE_CENTOSPLUS=rsync.hrz.tu-chemnitz.de::ftp/pub/linux/centos/5.0/centosplus/
DESTINATION_CENTOSPLUS=/data/nfs/linux/centos/5.0/centosplus/

SOURCE_EXTRAS=rsync.hrz.tu-chemnitz.de::ftp/pub/linux/centos/5.0/extras/
DESTINATION_EXTRAS=/data/nfs/linux/centos/5.0/extras/

SOURCE_FASTTRACK=rsync.hrz.tu-chemnitz.de::ftp/pub/linux/centos/5.0/fasttrack/
DESTINATION_FASTTRACK=/data/nfs/linux/centos/5.0/fasttrack/

SOURCE_OS=rsync.hrz.tu-chemnitz.de::ftp/pub/linux/centos/5.0/os/
DESTINATION_OS=/data/nfs/linux/centos/5.0/os/

SOURCE_UPDATES=rsync.hrz.tu-chemnitz.de::ftp/pub/linux/centos/5.0/updates/
DESTINATION_UPDATES=/data/nfs/linux/centos/5.0/updates/

LOGFILE=/data/nfs/linux/centos5.0_download.log

echo -e "\n`date "+%b %e %X"`: Downloading CentOS 5.0 Addons\n" >> ${LOGFILE}
rsync -av --delete --progress --delay-updates --exclude "x86_64" ${SOURCE_ADDONS} ${DESTINATION_ADDONS} >> ${LOGFILE}
echo -e "\n`date "+%b %e %X"`: Download finished\n" >> ${LOGFILE}

echo -e "\n`date "+%b %e %X"`: Downloading CentOS 5.0 CentOSPlus\n" >> ${LOGFILE}
rsync -av --delete --progress --delay-updates --exclude "x86_64" ${SOURCE_CENTOSPLUS} ${DESTINATION_CENTOSPLUS} >> ${LOGFILE}
echo -e "\n`date "+%b %e %X"`: Download finished\n" >> ${LOGFILE}

echo -e "\n`date "+%b %e %X"`: Downloading CentOS 5.0 Extras\n" >> ${LOGFILE}
rsync -av --delete --progress --delay-updates --exclude "x86_64" ${SOURCE_EXTRAS} ${DESTINATION_EXTRAS} >> ${LOGFILE}
echo -e "\n`date "+%b %e %X"`: Download finished\n" >> ${LOGFILE}

echo -e "\n`date "+%b %e %X"`: Downloading CentOS 5.0 Fasttrack\n" >> ${LOGFILE}
rsync -av --delete --progress --delay-updates --exclude "x86_64" ${SOURCE_FASTTRACK} ${DESTINATION_FASTTRACK} >> ${LOGFILE}
echo -e "\n`date "+%b %e %X"`: Download finished\n" >> ${LOGFILE}

echo -e "\n`date "+%b %e %X"`: Downloading CentOS 5.0 OS\n" >> ${LOGFILE}
rsync -av --delete --progress --delay-updates --exclude "x86_64" ${SOURCE_OS} ${DESTINATION_OS} >> ${LOGFILE}
echo -e "\n`date "+%b %e %X"`: Download finished\n" >> ${LOGFILE}

echo -e "\n`date "+%b %e %X"`: Downloading CentOS 5.0 Updates\n" >> ${LOGFILE}
rsync -av --delete --progress --delay-updates --exclude "x86_64" ${SOURCE_UPDATES} ${DESTINATION_UPDATES} >> ${LOGFILE}
echo -e "\n`date "+%b %e %X"`: Download finished\n" >> ${LOGFILE}

echo "--------------------------------------------------------------" >> ${LOGFILE}
exit 0


Dieser Eintrag wurde am 06.11.2007 erstellt und zuletzt am 05.04.2015 bearbeitet.

Direkter Link zu dieser Seite: http://www.gtkdb.de/index_33_842.html

[ Zur Startseite ]   [ Zur Kategorie ]


Valid XHTML 1.0 Transitional Valid CSS Valid Atom 1.0

© 2004-2018 by Georg Kainzbauer