Skip to content

beclab/backup-server

Repository files navigation

backup-server

Description

As part of the system, the backup-server provides functionality for backing up and restoring system and user data.

Getting Started

How to build

make

Running

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/
  1. API Server
backup-server apiserver --velero-namespace os-system \
  --velero-service-account os-internal \
  --backup-bucket terminus-us-west-1 \
  --backup-key-prefix <userid>
  1. 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"
  1. VController
backup-server vcontroller --velero-namespace os-system \
  --velero-service-account os-internal
  1. SicdecarBackupSync
backup-sync --log-level debug --sync-interval "10"
  1. 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
  1. Create Backup-Plan

Create a backup task on the Backup page of the Terminus system Settings.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages