-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcopy_code_to_philly.sh
44 lines (28 loc) · 1.99 KB
/
copy_code_to_philly.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
36
37
38
39
40
41
42
43
44
#!/bin/bash
echo "Copying code to gcr"
# Mount the msrlabs_scratch/dedey folder to /mnt/msrlabs_scratch_dedey
sudo mount -t cifs //storage.gcr.philly.selfhost.corp.microsoft.com/msrlabs_scratch/dedey /mnt/msrlabs_scratch_dedey/ -o username=dedey,domain=REDMOND,iocharset=utf8,passwd="Urdu2god?"
# Clean
sudo rm -rf /mnt/msrlabs_scratch_dedey/AnytimeNeuralNetwork_master/*
# Copy AnytimeNeuralNetwork contents to /mnt/msrlabs_scratch_dedey/AnytimeNeuralNetwork
sudo rsync -vr --progress --exclude='.git/' /home/dedey/AnytimeNeuralNetwork/ /mnt/msrlabs_scratch_dedey/AnytimeNeuralNetwork_master/
# Unmount the /mnt/msrlabs_scratch_dedey folder
sudo umount /mnt/msrlabs_scratch_dedey
echo "Copying code to rr1"
# Mount the msrlabs_scratch/dedey folder to /mnt/msrlabs_scratch_dedey
sudo mount -t cifs //storage.rr1.philly.selfhost.corp.microsoft.com/msrlabs_scratch/dedey /mnt/msrlabs_scratch_dedey/ -o username=dedey,domain=REDMOND,iocharset=utf8,passwd="Urdu2god?"
# Clean
sudo rm -rf /mnt/msrlabs_scratch_dedey/AnytimeNeuralNetwork_master/*
# Copy AnytimeNeuralNetwork contents to /mnt/msrlabs_scratch_dedey/AnytimeNeuralNetwork
sudo rsync -vr --progress --exclude='.git/' /home/dedey/AnytimeNeuralNetwork/ /mnt/msrlabs_scratch_dedey/AnytimeNeuralNetwork_master/
# Unmount the /mnt/msrlabs_scratch_dedey folder
sudo umount /mnt/msrlabs_scratch_dedey
# echo "Copying code to cam"
# Mount the msrlabs_scratch/dedey folder to /mnt/msrlabs_scratch_dedey
sudo mount -t cifs //storage.cam.philly.selfhost.corp.microsoft.com/msrlabs_scratch/dedey /mnt/msrlabs_scratch_dedey/ -o username=dedey,domain=REDMOND,iocharset=utf8,passwd="Urdu2god?"
# Clean
sudo rm -rf /mnt/msrlabs_scratch_dedey/AnytimeNeuralNetwork_master/*
# Copy AnytimeNeuralNetwork contents to /mnt/msrlabs_scratch_dedey/AnytimeNeuralNetwork
sudo rsync -vr --progress --exclude='.git/' /home/dedey/AnytimeNeuralNetwork/ /mnt/msrlabs_scratch_dedey/AnytimeNeuralNetwork_master/
# Unmount the /mnt/msrlabs_scratch_dedey folder
sudo umount /mnt/msrlabs_scratch_dedey