Good to Know Database

Shell Skript: Fedora 7 Download Script


###########################################################################
##                                                                       ##
##                       Fedora 7 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_OS=rsync.hrz.tu-chemnitz.de::ftp/pub/linux/fedora/linux/releases/7/Fedora/
DESTINATION_OS=/data/nfs/linux/fedora/linux/releases/7/Fedora/

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

LOGFILE=/data/nfs/linux/fedora7_download.log

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

echo -e "\n`date "+%b %e %X"`: Downloading Fedora 7 Updates\n" >> ${LOGFILE}
rsync -av --delete --progress --delay-updates --exclude "ppc" --exclude "ppc64" --exclude "x86_64" --exclude "debug" ${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_844.html

[ Zur Startseite ]   [ Zur Kategorie ]


Valid XHTML 1.0 Transitional Valid CSS Valid Atom 1.0

© 2004-2018 by Georg Kainzbauer