projects
/
scripts
/
scripts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added .bashrc + fixed compaq hostname
[scripts/scripts.git]
/
backup.sh
diff --git
a/backup.sh
b/backup.sh
index
a1a0f1a
..
1a1ebc8
100755
(executable)
--- a/
backup.sh
+++ b/
backup.sh
@@
-5,6
+5,7
@@
backup_date=`date | awk '{ print $3"."$2"."$6 }'`
host=`hostname`
backup_date=`date | awk '{ print $3"."$2"."$6 }'`
host=`hostname`
+[ ! -d /mnt/nfs ] && mkdir -p /mnt/nfs
# set the backup directory
if [ "$host" = "gate" ] ; then
# set the backup directory
if [ "$host" = "gate" ] ; then
@@
-153,7
+154,7
@@
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
# home of hackbard
mkdir -p ./home/hackbard
@@
-167,7
+168,7
@@
if [ "$host" = "hackstation" -o "$host" = "mobile" -o "$host" = "hdw" -o "$host"
cp -r /home/hackbard/projects ./home/hackbard
fi
for i in xinitrc_evil xinitrc_wm .xinitrc GNUstep .Xauthority \
cp -r /home/hackbard/projects ./home/hackbard
fi
for i in xinitrc_evil xinitrc_wm .xinitrc GNUstep .Xauthority \
- .Xdefaults .signature .directfbrc; do
+ .Xdefaults .signature .directfbrc
.bashrc
; do
[ -f /home/hackbard/$i ] && \
cp -r /home/hackbard/$i ./home/hackbard
done
[ -f /home/hackbard/$i ] && \
cp -r /home/hackbard/$i ./home/hackbard
done