]> hackdaworld.org Git - scripts/scripts.git/commitdiff
be clever - create the mountpoint first :-o
authorhackbard <hackbard>
Wed, 10 Sep 2003 14:04:55 +0000 (14:04 +0000)
committerhackbard <hackbard>
Wed, 10 Sep 2003 14:04:55 +0000 (14:04 +0000)
backup.sh

index a1a0f1a1dacebbeb3a337b6be30c13d03e19ce4f..cbed041a8047980d3f68db156047e3c3bc0004fa 100755 (executable)
--- a/backup.sh
+++ b/backup.sh
@@ -5,6 +5,7 @@
 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