Backup and restore.
This commit is contained in:
24
setup/operator/backup/install.sh
Executable file
24
setup/operator/backup/install.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
set -o pipefail
|
||||
|
||||
# Initialize Wild Cloud environment
|
||||
if [ -z "${WC_ROOT}" ]; then
|
||||
print "WC_ROOT is not set."
|
||||
exit 1
|
||||
else
|
||||
source "${WC_ROOT}/scripts/common.sh"
|
||||
init_wild_env
|
||||
fi
|
||||
|
||||
print_header "Setting up backup configuration"
|
||||
|
||||
print_info "Backup configuration allows Wild Cloud applications to create and manage backups"
|
||||
print_info "(database backups, file backups, etc.)."
|
||||
echo ""
|
||||
|
||||
# Collect backup configuration
|
||||
print_info "Collecting backup configuration..."
|
||||
prompt_if_unset_config "cloud.backup.root" "Enter path for backups" ""
|
||||
prompt_if_unset_config "cloud.backup.staging" "Enter path for staging backups" ""
|
||||
print_success "Backup configuration collected successfully"
|
14
setup/operator/install_all.sh
Normal file
14
setup/operator/install_all.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Navigate to script directory
|
||||
SCRIPT_PATH="$(realpath "${BASH_SOURCE[0]}")"
|
||||
SCRIPT_DIR="$(dirname "$SCRIPT_PATH")"
|
||||
cd "$SCRIPT_DIR"
|
||||
|
||||
echo "Setting up your operator tooling..."
|
||||
echo
|
||||
|
||||
./backup/install.sh
|
||||
|
||||
echo "Operator tooling setup complete!"
|
Reference in New Issue
Block a user