-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackup.txt
84 lines (39 loc) · 4.17 KB
/
backup.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
in terminal, from the dir with the pem file:
#ssh -i aws-alan-laptop.pem [email protected]
ssh -i aws-alan-laptop.pem [email protected]
on AWS, cd to backups (/home/ec2-user/backups)
use a cmd similar to the following
curl -X GET http://localhost:54956/ret_images/_all_docs?include_docs=true >ret_images_2140_25_7_2015.json
curl -X GET http://localhost:54956/ret_images/_all_docs?include_docs=true >ret_images_1330_17_8_2015.json
curl -X GET http://localhost:54956/ret_images/_all_docs?include_docs=true >ret_images_0900_09_14_2015.json
curl -X GET http://localhost:54956/ret_images/_all_docs?include_docs=true >ret_images_0900_09_30_2015.json
curl -X GET http://localhost:54956/ret_images/_all_docs?include_docs=true >ret_images_1220_12_06_2015.json
curl -X GET http://localhost:54956/ret_images/_all_docs?include_docs=true >ret_images_2220_02_20_2016.json
curl -X GET http://localhost:54956/ret_images/_all_docs?include_docs=true >ret_images_2016_10_09_1515.json
curl -X GET http://localhost:54956/ret_images/_all_docs?include_docs=true >ret_images_2016_11_19_1044.json
curl -X GET http://localhost:54956/ret_images/_all_docs?include_docs=true >ret_images_2017_02_26_1730.json
on local machine, from pem file dir
scp -rp -i aws-alan-laptop.pem [email protected]:/home/ec2-user/backups/ret_images_2140_7_26_2015.json .
scp -rp -i aws-alan-laptop.pem [email protected]:/home/ec2-user/backups/ret_images_1330_17_8_2015.json .
scp -rp -i aws-alan-laptop.pem [email protected]:/home/ec2-user/backups/ret_images_0900_09_14_2015.json .
scp -rp -i aws-alan-laptop.pem [email protected]:/home/ec2-user/backups/ret_images_0900_09_30_2015.json /Users/jkc/Documents/retinalImaging/website/data/
scp -rp -i aws-alan-laptop.pem [email protected]:/home/ec2-user/backups/ret_images_2016_10_09_1515.json /Users/jkc/Documents/retinalImaging/website/data/
scp -rp -i aws-alan-laptop.pem [email protected]:/home/ec2-user/backups/ret_images_2016_10_09_1515.json /Users/jkc/Documents/retinalImaging/website/data/
scp -rp -i aws-alan-laptop.pem [email protected]:/home/ec2-user/backups/ret_images_2017_02_26_1730.json /Users/jkc/Documents/retinalImaging/website/data/
scp -rp -i aws-alan-laptop.pem [email protected]:/home/ec2-user/backups/ret_images_2017_12_15_1608.json .
move backup to the backups dir (e.g. /Users/jayashreekalpathy-cramer/Documents/retinalImaging/dbBackups or /Users/jkc/Documents/retinalImaging/website/data/)
scp -rp -i aws-alan-laptop.pem [email protected]:/home/ec2-user/build-couchdb/build/var/lib/couchdb/ret_images.couch /Users/jkc/Documents/retinalImaging/website/data/
location of couch file
/home/ec2-user/build-couchdb/build/var/lib/couchdb/ret_images.couch
ssh -i "aws-alan-laptop.pem" [email protected]
scp -rp -i aws-alan-laptop.pem /Users/jayashreekalpathy-cramer/Syncplicity/retinalImaging/aws-alan-laptop.pem [email protected]:/home/ec2-user/
scp -rp -i aws-alan-laptop.pem /Users/jayashreekalpathy-cramer/Syncplicity/retinalImaging/aws-alan-laptop.pem [email protected]:/home/ec2-user/
scp -rp -i aws-alan-laptop.pem [email protected]:/home/ec2-user/build-couchdb/build/var/lib/couchdb/ret_images.couch .
scp -rp -i aws-alan-laptop.pem secondSet100All.zip [email protected]:/home/ec2-user
ec2-54-87-182-149.compute-1.amazonaws.com
/home/ec2-user/secondSet100All
curl http://jayashree:changeme@[email protected]:54956
yum -y install ruby-devel rubygems
transfering sangs files
scp -rp -i aws-alan-laptop.pem images/sang/1stsetQuadrant.zip [email protected]:/home/ec2-user
scp -rp -i aws-alan-laptop.pem images/sang/2ndsetQuadrant.zip [email protected]:/home/ec2-user