File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- set -e
3
+ set -ex
4
4
5
5
RELEASE_IMAGE=quay.io/openshift-release-dev/ocp-release:4.13.0-x86_64
6
6
BACKUP_IMAGE=${1:- quay.io/ otuchfel/ ostbackup: seed}
@@ -49,9 +49,9 @@ until etcdctl endpoint health; do
49
49
sleep 1
50
50
done
51
51
52
-
53
- cargo run --manifest-path etcddump/Cargo.toml --release -- --etcd-endpoint localhost:2379 --output-dir backup/etcd_orig
54
-
52
+ sudo unshare --mount -- bash -c " mount --bind /dev/null .cargo/config.toml && sudo -u $USER env PATH= $PATH \
53
+ cargo run --manifest-path etcddump/Cargo.toml --release -- --etcd-endpoint localhost:2379 --output-dir backup/etcd_orig \
54
+ "
55
55
56
56
cargo run --release -- \
57
57
--etcd-endpoint localhost:2379 \
@@ -69,7 +69,9 @@ cargo run --release -- \
69
69
--extend-expiration
70
70
# --regenerate-server-ssh-keys backup/etc/ssh/ \
71
71
72
- cargo run --manifest-path etcddump/Cargo.toml --release -- --etcd-endpoint localhost:2379 --output-dir backup/etcd
72
+ sudo unshare --mount -- bash -c " mount --bind /dev/null .cargo/config.toml && sudo -u $USER env PATH=$PATH \
73
+ cargo run --manifest-path etcddump/Cargo.toml --release -- --etcd-endpoint localhost:2379 --output-dir backup/etcd \
74
+ "
73
75
74
76
# meld backup/etc_orig backup/etc
75
77
# meld backup/var_orig backup/var
You can’t perform that action at this time.
0 commit comments