-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmayac
More file actions
executable file
·49 lines (43 loc) · 775 Bytes
/
Copy pathmayac
File metadata and controls
executable file
·49 lines (43 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
cmotion_usage()
{
echo "Usage: mayac cmotion src <src_cluster> dst <dest_cluster>"
}
if [ "$1" == "describe" ]; then
if [ "$2" == "cluster1" ]; then
echo "Cluster1: 35.188.69.178"
elif [ "$2" == "cluster2" ]; then
echo "Cluster2: 35.192.84.168"
else
echo "unknown cluster"
fi
exit
fi
if [ "$1" == "cmotion" ]; then
if [ "$2" == "src" ]; then
src=$3
else
echo "Please specify source"
cmotion_usage
exit
fi
if [ "$4" == "dst" ]; then
dst=$5
else
echo "Please specify destination"
cmotion_usage
exit
fi
migrate.sh $src $dst
exit
fi
if [ "$1" == "status" ]; then
status.sh
exit
fi
if [ "$1" == "prepare" ]; then
cmotion_prepare.sh
echo "Preparation done"
exit
fi
echo "unknown command"
exit