projects
/
scripts
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
c07408a
)
some adaptions :)
author
hackbard
<hackbard>
Thu, 2 Sep 2004 18:56:28 +0000
(18:56 +0000)
committer
hackbard
<hackbard>
Thu, 2 Sep 2004 18:56:28 +0000
(18:56 +0000)
backup.sh
patch
|
blob
|
history
diff --git
a/backup.sh
b/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
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
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 \
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
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
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
# 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
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
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
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
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 \
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
[ -e /home/hackbard/$i ] && \
cp -r /home/hackbard/$i ./home/hackbard
done