More fixes for backuptool

This commit is contained in:
root 2024-10-21 18:17:25 +00:00
parent 0c91789f34
commit 283ed6152f

View File

@ -328,7 +328,6 @@ restorebackup_allservices() {
for i in "${SERVICES[@]}"; do for i in "${SERVICES[@]}"; do
echo "** Restoring $i to /federated.restore/apps/$i.." echo "** Restoring $i to /federated.restore/apps/$i.."
PASSPHRASE=$GPG_PASSPHRASE duplicity --force b2://$B2_APPLICATION_KEY_ID:$B2_APPLICATION_KEY@fed-customers/$UUID/federated/apps/$i/ /federated.restore/apps/$i PASSPHRASE=$GPG_PASSPHRASE duplicity --force b2://$B2_APPLICATION_KEY_ID:$B2_APPLICATION_KEY@fed-customers/$UUID/federated/apps/$i/ /federated.restore/apps/$i
[ $? -ne 0 ] && failcheck "* Couldn't restore files"
done done
} }
restorebackup_nfsmounts() { restorebackup_nfsmounts() {
@ -371,13 +370,13 @@ while getopts "lbdr" OPTION; do
esac esac
done done
[ $# -gt 3 ] || [ $# -lt 1 ] && usage [ $# -gt 4 ] || [ $# -lt 1 ] && usage
SERVICE=$2 SERVICE=$2
if [ $# -ge 3 ]; then if [ $# -ge 3 ]; then
PASSKEY=$2 PASSKEY=$2
SERVICE=$3 BACKUPHOST=$3
BACKUPHOST=$4 SERVICE=$4
fi fi
if [ -f "/federated/bin/.gpg.backblaze" ]; then if [ -f "/federated/bin/.gpg.backblaze" ]; then