Bug Fixes
This commit is contained in:
parent
6a8996cffd
commit
ea1ac43f8f
1 changed files with 7 additions and 3 deletions
10
backup.sh
10
backup.sh
|
@ -1,7 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ ! -e /backups/config ]; then
|
||||
echo "Config not found!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -a
|
||||
source .config
|
||||
source /backups/config
|
||||
set +a
|
||||
set -e
|
||||
|
||||
|
@ -42,6 +47,7 @@ fi
|
|||
# Test, then create Lockfile
|
||||
if [ -e /tmp/backup.lock ]; then
|
||||
echo "Backups are already running! If in error, manually remove the lockfile!"
|
||||
exit 1
|
||||
fi
|
||||
touch /tmp/backup.lock
|
||||
|
||||
|
@ -74,8 +80,6 @@ if [ ! -z "$BACKUP_EXCLUDE" ]; then
|
|||
done
|
||||
fi
|
||||
|
||||
echo "$exclude_parsed"
|
||||
|
||||
if [ ! "$MAX_SPEED_KILOBYTES_SECOND" -eq 0 ]; then
|
||||
speed_parsed='--limit-upload '$(echo $MAX_SPEED_KILOBYTES_SECOND)
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue