From: Arne Fitzenreiter Date: Fri, 27 Mar 2009 20:11:04 +0000 (+0100) Subject: Change compression from backup of core-upgrade 28 to bzip2 X-Git-Tag: v2.5-beta1~70 X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=ab7e4479ed5c1a7565133a9dbb585eb6bbb0aaef Change compression from backup of core-upgrade 28 to bzip2 Fix doubled extension of thr backup file --- diff --git a/config/rootfiles/core/28/update.sh b/config/rootfiles/core/28/update.sh index 34505ea888..a66d670408 100755 --- a/config/rootfiles/core/28/update.sh +++ b/config/rootfiles/core/28/update.sh @@ -35,10 +35,10 @@ echo $MOUNT > /dev/null MOUNT=$_ # # check if we the backup file already exist -if [ -e /var/ipfire/backup/coreupdate28_$KVER.tar.gz ]; then +if [ -e /var/ipfire/backup/core-upgrade_$KVER.tar.bz2 ]; then echo Moving backup to backup-old ... - mv -f /var/ipfire/backup/coreupdate28_$KVER.tar.gz \ - /var/ipfire/backup/coreupdate28_$KVER-old.tar.gz + mv -f /var/ipfire/backup/core-upgrade_$KVER.tar.bz2 \ + /var/ipfire/backup/core-upgrade_$KVER-old.tar.bz2 fi echo First we made a backup of all files that was inside of the echo update archive. This may take a while ... @@ -49,7 +49,7 @@ echo etc/issue >> /opt/pakfire/tmp/ROOTFILES echo opt/pakfire/etc/pakfire.conf >> /opt/pakfire/tmp/ROOTFILES echo etc/sysconfig/lm_sensors >> /opt/pakfire/tmp/ROOTFILES # -tar czvf /var/ipfire/backup/coreupdate28_$KVER.tar.gz.tar.gz \ +tar cjvf /var/ipfire/backup/core-upgrade_$KVER.tar.bz2 \ -T /opt/pakfire/tmp/ROOTFILES --exclude='#*' -C / > /dev/null 2>&1 echo echo Update IPfire to $NEWVERSION ...