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
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ ! -e /backups/config ]; then
|
||||||
|
echo "Config not found!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
set -a
|
set -a
|
||||||
source .config
|
source /backups/config
|
||||||
set +a
|
set +a
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
@ -42,6 +47,7 @@ fi
|
||||||
# Test, then create Lockfile
|
# Test, then create Lockfile
|
||||||
if [ -e /tmp/backup.lock ]; then
|
if [ -e /tmp/backup.lock ]; then
|
||||||
echo "Backups are already running! If in error, manually remove the lockfile!"
|
echo "Backups are already running! If in error, manually remove the lockfile!"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
touch /tmp/backup.lock
|
touch /tmp/backup.lock
|
||||||
|
|
||||||
|
@ -74,8 +80,6 @@ if [ ! -z "$BACKUP_EXCLUDE" ]; then
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$exclude_parsed"
|
|
||||||
|
|
||||||
if [ ! "$MAX_SPEED_KILOBYTES_SECOND" -eq 0 ]; then
|
if [ ! "$MAX_SPEED_KILOBYTES_SECOND" -eq 0 ]; then
|
||||||
speed_parsed='--limit-upload '$(echo $MAX_SPEED_KILOBYTES_SECOND)
|
speed_parsed='--limit-upload '$(echo $MAX_SPEED_KILOBYTES_SECOND)
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue