projects
/
scripts
/
scripts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
small changes, see diff
[scripts/scripts.git]
/
backup.sh
diff --git
a/backup.sh
b/backup.sh
index
cbed041
..
38a9f64
100755
(executable)
--- 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 \
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
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
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
# 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:"
# data stuff
echo "data stuff:"
@@
-154,22
+171,18
@@
if [ "$host" = "right-hand" ] ; then
fi
# hackstation / mobile / hdw / sparc specific data
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"
# 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
[ -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 \
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
[ -d /home/hackbard/.ssh ] && cp -r /home/hackbard/.ssh ./home/hackbard
cp -r /home/hackbard/$i ./home/hackbard
done
[ -d /home/hackbard/.ssh ] && cp -r /home/hackbard/.ssh ./home/hackbard
@@
-177,15
+190,15
@@
if [ "$host" = "hackstation" -o "$host" = "mobile" -o "$host" = "hdw" -o "$host"
# tftpboot
if [ -d /tftpboot ] ; then
mkdir -p ./tftpboot
# tftpboot
if [ -d /tftpboot ] ; then
mkdir -p ./tftpboot
- echo "copyin
f
tftpboot stuff"
+ echo "copyin
g
tftpboot stuff"
cp -r /tftpboot/* ./tftpboot
fi
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
mkdir -p ./root
- cp /root/
hunz_
${i}.sh ./root
+ cp /root/${i}.sh ./root
fi
done
fi
done