diff --git a/backup b/backup index 87beaf0..5c2a01f 100755 --- a/backup +++ b/backup @@ -1,6 +1,12 @@ #!/bin/bash +if [ $# -ne 1 ]; then + echo "Usage: $0 " + exit 1 +fi + + +BACKUP_LOCATION=$1+"-"+$(date +%Y-%m-%d) -BACKUP_LOCATION="/nas/share/backup-$(date +%Y-%m-%d).tar" COMPRESS=false rm -f $BACKUP_LOCATION