added location argument

This commit is contained in:
tofasthacker 2024-02-19 17:03:21 -05:00
parent d7ce42204a
commit 08f16f2398

8
backup
View File

@ -1,6 +1,12 @@
#!/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
rm -f $BACKUP_LOCATION