-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrsync.txt
40 lines (35 loc) · 1.35 KB
/
rsync.txt
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
cd /lfs/h2/emc/obsproc/noscrub/iliana.genkova/ig_vault
PDY=`date +\%Y\%m\%d`
### rsync -avhWr --no-compress --progress src/ destination
FRUIT="OLD"
case "$FRUIT" in
"OLD")
echo "Back up OLD dev..."
##ON OLD DEV WHILE IN /ig_vault
crontab -l > cron/crontab_dev_$PDY
cp /u/iliana.genkova/.bashrc bashrc/.bashrc.dev.$PDY
rsync -avhWr --no-compress --progress ../Utils/ utils
rsync -avhWr --no-compress --progress ../Trigs.KEEP/ triggers/
## Manually add the top level "helpers" (from /noscrub to /ig_vault)
#git status
#git add ...
#git commit
#git push
cp /lfs/h2/emc/obsproc/noscrub/iliana.genkova/obsproc_paths .
cp /lfs/h2/emc/obsproc/noscrub/iliana.genkova/pda_IPs.txt .
cp /lfs/h2/emc/obsproc/noscrub/iliana.genkova/where_are_the_logs .
;;
"NEW")
echo "Set up NEW dev..."
##ON NEW DEV, WHILE IN /ig_vault
git pull
rsync -avhWr --no-compress --progress utils/ ../Utils
rsync -avhWr --no-compress --progress triggers/ ../Trigs.KEEP/
cp bashrc/.bashrc.dev.$PDY /u/iliana.genkova/.bashrc
crontab cron/crontab_dev_$PDY # (hit Enter)
#Manually coppy the top level "helpers"
cp obsproc_paths /lfs/h2/emc/obsproc/noscrub/iliana.genkova/obsproc_paths
cp pda_IPs.txt /lfs/h2/emc/obsproc/noscrub/iliana.genkova/pda_IPs.txt
cp where_are_the_logs /lfs/h2/emc/obsproc/noscrub/iliana.genkova/where_are_the_logs
;;
esac