X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=backup.sh;h=9737f8c7668d3bf8cb55e7c2145a5ff6179b0ed7;hb=e0d5ede94ac7c62d827d8d5d3b27927ada294183;hp=cbed041a8047980d3f68db156047e3c3bc0004fa;hpb=856aed4ee23291972e9595a5f131feb9d4be1b3f;p=scripts%2Fscripts.git diff --git a/backup.sh b/backup.sh index cbed041..9737f8c 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; 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:" @@ -154,38 +171,37 @@ if [ "$host" = "right-hand" ] ; then fi # hackstation / mobile / hdw / sparc specific data -if [ "$host" = "hackstation" -o "$host" = "mobile" -o "$host" = "hdw" -o "$host" = "sparc" -o "$host" = "left-hand" ] ; then +if [ "$host" = "hackstation" -o "$host" = "mobile" -o "$host" = "hdw" -o "$host" = "sparc" -o "$host" = "compaq" ] ; then # 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; do - [ -f /home/hackbard/$i ] && \ + .Xdefaults .XHkeys .signature .directfbrc .bashrc ; do + [ -e /home/hackbard/$i ] && \ cp -r /home/hackbard/$i ./home/hackbard done + if [ -d /home/hackbard/.mozilla ] && + cp /home/hackbard/.mozilla/default/*/bookmarks.html \ + mozilla-bookmarks.html [ -d /home/hackbard/.ssh ] && cp -r /home/hackbard/.ssh ./home/hackbard # 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