-
Notifications
You must be signed in to change notification settings - Fork 5
/
rsync_gerjoii.sh
35 lines (35 loc) · 1.98 KB
/
rsync_gerjoii.sh
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
#!/bin/bash
# ------------------------------------------------------------------------------
printf "\n\n%-3s---------------------------------------------"
printf "\n%-4s gonna rsync all of gerjoii!!"
printf "\n%-3s---------------------------------------------\n\n\n"
# ------------------------------------------------------------------------------
cd ..
# ------------------------------------------------------------------------------
echo r2 or kes or leh or mio?
read server_name
# ------------------------------------------------------------------------------
if [ "$server_name" == "r2" ]
then
server_name="[email protected]:/home/ddomenzain/gerjoii/"
# ----------------------------------------------------------------------------
rsync -r -rav -e ssh --include '*/' --include='*'.{m,bash,sh,txt} -p --exclude='*' --exclude .git/ gerjoii/ $server_name
elif [ "$server_name" == "kes" ]
then
server_name="[email protected]:/home/diegodomenzain/gerjoii/"
# ----------------------------------------------------------------------------
rsync -r -rav -e ssh --include '*/' --include='*'.{m,bash,sh,txt} -p --exclude='*' --exclude .git/ gerjoii/ $server_name
elif [ "$server_name" == "leh" ]
then
server_name="[email protected]:/sonichome/diegozain/gerjoii/"
# ----------------------------------------------------------------------------
rsync -r -rav -e ssh --include '*/' --include='*'.{m,py,bash,sh,txt} -p --exclude='*' --exclude .git/ gerjoii/ $server_name
elif [ "$server_name" == "mio" ]
then
server_name="[email protected]:/u/wy/ba/diegodomenzain/gerjoii/"
# ----------------------------------------------------------------------------
rsync -r -rav -e ssh --include '*/' --include='*'.{m,py,bash,sh,txt} -p --exclude='*' --exclude .git/ gerjoii/ $server_name
fi
# ------------------------------------------------------------------------------
cd gerjoii/
# ------------------------------------------------------------------------------