Good to Know Database

Shell Skript: openSUSE 10.3 Download Script


###########################################################################
##                                                                       ##
##                     openSUSE 10.3 Download Script                     ##
##                                                                       ##
## Creation:    26.11.2004                                               ##
## Last Update: 06.11.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_OSS=ftp-1.gwdg.de::pub/opensuse/distribution/10.3/repo/oss/
DESTINATION_OSS=/data/nfs/opensuse10.3/oss/

SOURCE_NON_OSS=ftp-1.gwdg.de::pub/opensuse/distribution/10.3/repo/non-oss/
DESTINATION_NON_OSS=/data/nfs/opensuse10.3/non-oss/

SOURCE_UPDATE=ftp-1.gwdg.de::pub/opensuse/update/10.3/
DESTINATION_UPDATE=/data/nfs/opensuse10.3/update/

LOGFILE=/data/nfs/opensuse10.3/opensuse10.3_download.log

echo -e "\n`date "+%b %e %X"`: Downloading openSUSE 10.3 OSS\n" >> ${LOGFILE}
# Use the following command to download the packages for all architectures
rsync -av --delete --progress --delay-updates ${SOURCE_OSS} ${DESTINATION_OSS} >> ${LOGFILE}
# Use the following command to download only the packages for i586 architecture
#rsync -av --delete --progress --delay-updates --exclude "x86_64" --exclude "ppc" --exclude "ppc64" ${SOURCE_OSS} ${DESTINATION_OSS} >> ${LOGFILE}
echo -e "\n`date "+%b %e %X"`: Download finished\n" >> ${LOGFILE}

echo -e "\n`date "+%b %e %X"`: Downloading openSUSE 10.3 NON-OSS\n" >> ${LOGFILE}
# Use the following command to download the packages for all architectures
rsync -av --delete --progress --delay-updates ${SOURCE_NON_OSS} ${DESTINATION_NON_OSS} >> ${LOGFILE}
# Use the following command to download only the packages for i586 architecture
#rsync -av --delete --progress --delay-updates --exclude "x86_64" --exclude "ppc" --exclude "ppc64" ${SOURCE_NON_OSS} ${DESTINATION_NON_OSS} >> ${LOGFILE}
echo -e "\n`date "+%b %e %X"`: Download finished\n" >> ${LOGFILE}

echo -e "\n`date "+%b %e %X"`: Downloading openSUSE 10.3 Updates\n" >> ${LOGFILE}
# Use the following command to download the packages for all architectures
rsync -av --delete --progress --delay-updates ${SOURCE_UPDATE} ${DESTINATION_UPDATE} >> ${LOGFILE}
# Use the following command to download only the packages for i586 architecture
#rsync -av --delete --progress --delay-updates --exclude "x86_64" --exclude "ppc" --exclude "ppc64" ${SOURCE_UPDATE} ${DESTINATION_UPDATE} >> ${LOGFILE}
echo -e "\n`date "+%b %e %X"`: Download finished\n" >> ${LOGFILE}

echo -e "\n--------------------------------------------------------------\n" >> ${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_846.html

[ Zur Startseite ]   [ Zur Kategorie ]


Valid XHTML 1.0 Transitional Valid CSS Valid Atom 1.0

© 2004-2018 by Georg Kainzbauer