X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=backup.sh;h=38a9f64e564d246e0eab95c2a9d55d496ec64caf;hb=f2c6f0465a165eefee61ba5b443c47ca5c956cf8;hp=ebf8c16a46aba415d5a5f764a145a3b8d42fcccd;hpb=026d55d4612eea2a125797446e6e478ab592f3d1;p=scripts%2Fscripts.git diff --git a/backup.sh b/backup.sh index ebf8c16..38a9f64 100755 --- a/backup.sh +++ b/backup.sh @@ -94,7 +94,8 @@ 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; do + xinetd.conf mp3user mp3db.conf modules.conf named.conf \ + modprobe.devfs modprobe.conf devfsd.conf ; do if [ -f /etc/$i ] ; then echo "copying /etc/$i" cp /etc/$i ./etc @@ -119,12 +120,28 @@ if [ "$host" = "gate" ] ; then cp -r /etc/mail ./etc fi + # mlsit procmail + if [ -d /home/mlist ] ; then + echo "copying mlist procmail config" + cp -r /home/mlist mlsit_pm_config + fi + # irc stuff mkdir -p ./ircd [ -f /etc/opt/unrealircd/unrealircd.conf ] && \ cp /etc/opt/unrealircd/unrealircd.conf ./ircd fi +# right-hand specific config stuff +if [ "$host" = "right-hand" ] ; then + if [ -d /var/named ] ; then + mkdir ./named + echo "copying dns data" + cp -r /var/named/* ./named + fi +fi + + # data stuff echo "data stuff:" @@ -151,12 +168,6 @@ if [ "$host" = "right-hand" ] ; then tar -cf ./chroot/$i.tar /chroot/$i fi done - - mkdir ./named - if [ -d /var/named ] ; then - echo "copying dns data" - cp -r /var/named/* ./named - fi fi # hackstation / mobile / hdw / sparc specific data @@ -165,17 +176,13 @@ if [ "$host" = "hackstation" -o "$host" = "mobile" -o "$host" = "hdw" -o "$host" # home of hackbard mkdir -p ./home/hackbard echo "copying home" - for i in software store; do + for i in temp test; do [ -d /home/hackbard/$i ] && \ cp -r /home/hackbard/$i ./home/hackbard done - if [ "$host" = "hackstation" ]; then - [ -d /home/hackbard/projects ] && \ - cp -r /home/hackbard/projects ./home/hackbard - fi for i in xinitrc_evil xinitrc_wm .xinitrc GNUstep .Xauthority \ - .Xdefaults .signature .directfbrc .bashrc; do - [ -f /home/hackbard/$i ] && \ + .Xdefaults .XHkeys .signature .directfbrc .bashrc ; do + [ -e /home/hackbard/$i ] && \ cp -r /home/hackbard/$i ./home/hackbard done [ -d /home/hackbard/.ssh ] && cp -r /home/hackbard/.ssh ./home/hackbard @@ -183,15 +190,15 @@ if [ "$host" = "hackstation" -o "$host" = "mobile" -o "$host" = "hdw" -o "$host" # tftpboot if [ -d /tftpboot ] ; then mkdir -p ./tftpboot - echo "copyinf tftpboot stuff" + echo "copying tftpboot stuff" cp -r /tftpboot/* ./tftpboot fi - # hunz config - for i in prism lucent; do - if [ -f /root/hunz_${i}.sh ]; then + # wlan configs + for i in hunz_prism hunz_lucent roman_orinoco.sh; do + if [ -f /root/${i}.sh ]; then mkdir -p ./root - cp /root/hunz_${i}.sh ./root + cp /root/${i}.sh ./root fi done