Backup env config setup. Add --check flag to wild-config and wild-set.

This commit is contained in:
2025-08-15 03:32:18 -07:00
parent 4966bd05f2
commit 22d4dc15ce
3 changed files with 52 additions and 2 deletions

View File

@@ -76,3 +76,17 @@ else
fi
fi
fi
# Backup configuration.
if `wild-config cloud.backup.root --check`; then
export RESTIC_REPOSITORY="$(wild-config cloud.backup.root)"
else
echo "WARNING: Could not get cloud backup root."
fi
if `wild-secret cloud.backupPassword --check`; then
export RESTIC_PASSWORD="$(wild-secret cloud.backupPassword)"
else
echo "WARNING: Could not get cloud backup secret."
fi