]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
core38 updater: exclude squid cache from backup.
authorArne Fitzenreiter <arne_f@ipfire.org>
Sat, 26 Jun 2010 06:36:51 +0000 (08:36 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sat, 26 Jun 2010 06:36:51 +0000 (08:36 +0200)
config/rootfiles/core/38/update.sh

index 1c65373fc684b31c7bcf4411d82e1c6e4ad59ecf..dc643fe56acc785a2385787ebf15086283c52d58 100644 (file)
@@ -61,6 +61,9 @@ echo boot >> /opt/pakfire/tmp/ROOTFILES
 echo etc/sysconfig/lm_sensors >> /opt/pakfire/tmp/ROOTFILES
 echo usr/lib/ipsec >> /opt/pakfire/tmp/ROOTFILES
 echo usr/libexec/ipsec >> /opt/pakfire/tmp/ROOTFILES
 echo etc/sysconfig/lm_sensors >> /opt/pakfire/tmp/ROOTFILES
 echo usr/lib/ipsec >> /opt/pakfire/tmp/ROOTFILES
 echo usr/libexec/ipsec >> /opt/pakfire/tmp/ROOTFILES
+# exclude squid cache from backup
+sed -i -e "s|^var/log/cache|#var/log/cache|g" /opt/pakfire/tmp/ROOTFILES
+# Backup the files
 tar cjvf /var/ipfire/backup/core-upgrade_$KVER.tar.bz2 \
     -C / -T /opt/pakfire/tmp/ROOTFILES --exclude='#*' > /dev/null 2>&1
 
 tar cjvf /var/ipfire/backup/core-upgrade_$KVER.tar.bz2 \
     -C / -T /opt/pakfire/tmp/ROOTFILES --exclude='#*' > /dev/null 2>&1