some adaptions :)
authorhackbard <hackbard>
Thu, 2 Sep 2004 18:56:28 +0000 (18:56 +0000)
committerhackbard <hackbard>
Thu, 2 Sep 2004 18:56:28 +0000 (18:56 +0000)
backup.sh

index 3ff130a..7a36593 100755 (executable)
--- a/backup.sh
+++ b/backup.sh
@@ -85,7 +85,7 @@ for i in $kernel_num; do
 done
 
 mkdir ./etc
-for i in init.d conf opt ppp cups; do
+for i in init.d conf opt ppp cups udev cron.d; do
        if [ -d /etc/$i ] ; then
                echo "copying /etc/$i"
                cp -r /etc/$i ./etc
@@ -95,7 +95,7 @@ done
 for i in dhcpd.conf fstab hosts host.conf hosts.allow hosts.deny lilo.conf \
                profile sendmail.cf resolv.conf exports fb.modes inetd.conf \
                xinetd.conf mp3user mp3db.conf modules.conf named.conf \
-               modprobe.devfs modprobe.conf devfsd.conf ; do
+               modprobe.devfs modprobe.conf devfsd.conf crontab; do
        if [ -f /etc/$i ] ; then
        echo "copying /etc/$i"
        cp /etc/$i ./etc
@@ -107,6 +107,11 @@ if [ -f /etc/X11/XF86Config ] ; then
        echo "copying /etc/X11/XF86Config*"
        cp /etc/X11/XF86Config* ./etc/X11
 fi
+if [ -f /etc/X11/xorg.conf ] ; then
+       mkdir -p ./etc/X11
+       echo "copying /etc/X11/xorg.conf*"
+       cp /etc/X11/xorg.conf* ./etc/X11
+fi
 
 
 # specific config stuff
@@ -130,6 +135,11 @@ if [ "$host" = "gate" ] ; then
        mkdir -p ./ircd
        [ -f /etc/opt/unrealircd/unrealircd.conf ] && \
                cp /etc/opt/unrealircd/unrealircd.conf ./ircd
+       
+       # minimalist stuff 
+       mkdir -p ./minimalist
+       [ -f /etc/opt/minimalist/minimalist.conf ] && \
+               cp /etc/opt/minimalist/minimalist.conf ./minimalist
 fi
 
 # right-hand specific config stuff
@@ -139,6 +149,10 @@ if [ "$host" = "right-hand" ] ; then
                 echo "copying dns data"
                 cp -r /var/named/* ./named
         fi
+       if [ -f /etc/opt/apache*/httpd.conf ] ; then
+               mkdir ./apache
+               cp /etc/opt/apache*/httpd.conf ./apache
+       fi
 fi
 
 
@@ -181,7 +195,8 @@ if [ "$host" = "hackstation" -o "$host" = "mobile" -o "$host" = "hdw" -o "$host"
                        cp -r /home/hackbard/$i ./home/hackbard
        done
        for i in xinitrc_evil xinitrc_wm .xinitrc GNUstep .Xauthority \
-                       .Xdefaults .XHkeys .signature .directfbrc .bashrc ; do
+                       .Xdefaults .XHkeys .signature .directfbrc .bashrc \
+                       sp12 .licq .irssi; do
                [ -e /home/hackbard/$i ] && \
                        cp -r /home/hackbard/$i ./home/hackbard
        done