As part of the system, the backup-server provides functionality for backing up and restoring system and user data.
make
Before running backup-server, please make sure that the necessary Kubernetes resources it depends on have been created. The resource files are located at /confg/crds/backup/v1/.
kubectl apply -f ./config/crds/backup/v1/
- API Server
backup-server apiserver --velero-namespace os-system \
--velero-service-account os-internal \
--backup-bucket terminus-us-west-1 \
--backup-key-prefix <userid>
- Controller
backup-server controller --velero-namespace os-system \
--velero-service-account os-internal \
--backup-bucket terminus-us-west-1 \
--backup-key-prefix <userid> \
--backup-retain-days "30"
- VController
backup-server vcontroller --velero-namespace os-system \
--velero-service-account os-internal
- SicdecarBackupSync
backup-sync --log-level debug --sync-interval "10"
- Install Velero
# create velero backup-location
velero backup-location create terminus-cloud \
--provider terminus \
--namespace os-system \
--prefix "" \
--bucket terminus-cloud
# install velero plugin
velero install \
--no-default-backup-location \
--namespace os-system \
--image beclab/velero:v1.11.1 \
--use-volume-snapshots=false \
--no-secret \
--plugins beclab/velero-plugin-for-terminus:v1.0.1 \
--wait
- Create Backup-Plan
Create a backup task on the Backup page of the Terminus system Settings.