vesoft-inc / nebula-br

Backup and restore utility for Nebula Graph
Apache License 2.0
15 stars 11 forks source link

br should support docker-swarm/k8s deployment #21

Open wey-gu opened 3 years ago

wey-gu commented 3 years ago

as titled :-) Thanks!

wey-gu commented 2 years ago

With the agent-ful design thanks to @pengweisong , it's possible now

for Docker-compose, I managed to make it work with hack of docker feature to make two container with same domain name, it's actually the base concept for Pod with multiple containers i K8s, so it should be working fin in k8s where agent as a sidecar.

ref: https://github.com/wey-gu/nebula-up/ It's playable with:

curl -fsSL nebula-up.siwei.io/all-in-one.sh | bash -s -- v3 br

Then we could do something like:

# Create a full backup to MinIO(Be sure to run load-basketballplayer-dataset.sh before doing so)
~/.nebula-up/nebula-br-backup-full.sh
# Show all backups
~/.nebula-up/nebula-br-show.sh
# Restore to a backup named BACKUP_2022_05_08_11_38_08
~/.nebula-up/nebula-br-restore-full.sh BACKUP_2022_05_08_11_38_08