X-Git-Url: https://hackdaworld.org/gitweb/?p=scripts%2Fscripts.git;a=blobdiff_plain;f=backup.sh;h=cbed041a8047980d3f68db156047e3c3bc0004fa;hp=a1a0f1a1dacebbeb3a337b6be30c13d03e19ce4f;hb=856aed4ee23291972e9595a5f131feb9d4be1b3f;hpb=75f1fade4434092cf1596041f3dd762b034d34b8 diff --git a/backup.sh b/backup.sh index a1a0f1a..cbed041 100755 --- 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