added location argument
This commit is contained in:
parent
d7ce42204a
commit
08f16f2398
8
backup
8
backup
@ -1,6 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
if [ $# -ne 1 ]; then
|
||||||
|
echo "Usage: $0 <backup_location>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
BACKUP_LOCATION=$1+"-"+$(date +%Y-%m-%d)
|
||||||
|
|
||||||
BACKUP_LOCATION="/nas/share/backup-$(date +%Y-%m-%d).tar"
|
|
||||||
COMPRESS=false
|
COMPRESS=false
|
||||||
|
|
||||||
rm -f $BACKUP_LOCATION
|
rm -f $BACKUP_LOCATION
|
||||||
|
Loading…
Reference in New Issue
Block a user