Added updates for backuptool restoring from specific host
This commit is contained in:
parent
66824e58e4
commit
c40360071f
@ -373,9 +373,10 @@ done
|
||||
[ $# -gt 3 ] || [ $# -lt 1 ] && usage
|
||||
SERVICE=$2
|
||||
|
||||
if [ $# -eq 3 ]; then
|
||||
if [ $# -ge 3 ]; then
|
||||
PASSKEY=$2
|
||||
SERVICE=$3
|
||||
BACKUPHOST=$4
|
||||
fi
|
||||
|
||||
if [ -f "/federated/bin/.gpg.backblaze" ]; then
|
||||
@ -390,7 +391,7 @@ if [ -f "/etc/federated" ]; then
|
||||
[ -z "$B2_APPLICATION_KEY_ID" ] && failcheck "/etc/federated doesn't include B2_APPLICATION_KEY_ID for backups"
|
||||
[ -z "$B2_APPLICATION_KEY" ] && failcheck "/etc/federated doesn't include B2_APPLICATION_KEY for backups"
|
||||
[ -z "$DOMAIN" ] && failcheck "/etc/federated doesn't include DOMAIN for backups"
|
||||
UUID=$(hostname)
|
||||
[[ ! "$BACKUPHOST" ]] && UUID=$(hostname) || UUID="$BACKUPHOST"
|
||||
else
|
||||
failcheck "Could not find an /etc/federated file."
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user