[HLCC-ICE-000001][ZY-CONTRIB-20260723-001] feat: 以来光者贡献链启用冰朔第五域个人子频道
This commit is contained in:
commit
5615453e4e
660 changed files with 122355 additions and 0 deletions
17
server-tools/jd-disaster-recovery/backup-control-plane.sh
Normal file
17
server-tools/jd-disaster-recovery/backup-control-plane.sh
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
umask 077
|
||||
|
||||
out_dir=${1:-/var/backups/guanghu/jd-control-plane}
|
||||
stamp=$(date -u +%Y%m%dT%H%M%SZ)
|
||||
install -d -m 0700 "$out_dir"
|
||||
|
||||
tar -C / -czf "$out_dir/control-plane-${stamp}.tgz" \
|
||||
opt/guanghu/lake-lamp-authz \
|
||||
etc/guanghu/navigation-maps \
|
||||
etc/systemd/system/lake-lamp-authz.service \
|
||||
etc/systemd/system/lake-lamp-action-broker.service \
|
||||
etc/systemd/system/lake-lamp-owner-access.service
|
||||
sha256sum "$out_dir/control-plane-${stamp}.tgz" > "$out_dir/control-plane-${stamp}.sha256"
|
||||
|
||||
echo "CONTROL_PLANE_BACKUP_READY=${stamp}"
|
||||
Loading…
Reference in a new issue