-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtodo.txt
53 lines (35 loc) · 1.59 KB
/
todo.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
Useful stuff:
======================
dump database:
---
step 1: get url of db
in terminal: meteor mongo --url goe.meteor.com
returns: mongodb://client:19882025-e962-9db7-fd08-722b71900142@skybreak.member1.mongolayer.com:27017/goe_meteor_com
where mongodb://client:PASSWORD@skybreak.member1.mongolayer.com:27017/goe_meteor_com
PASSWORD is to be used at the -p option at step 2. It's valid for one minute
---
step 2: backup db to /backups/ (replace -p with the result labeled PASSWORD above)
in terminal:
mongodump -u client -h skybreak.member0.mongolayer.com:27017 -d beta_gameofexams_com -p -out ../snapshots-goe/database/week10-2503
connected to: skybreak.member0.mongolayer.com:27017
---
step 3: import db locally (meteor must be running)
mongorestore -h 127.0.0.1:3002 --db meteor /Users/erlendve/Dropbox/Aws/goe/backups/goe_meteor_com/
--- IMPORT DATABASE TO DEPLOYED SITE:
step 1: get url of db
in terminal: meteor mongo --url goe.meteor.com
returns: mongodb://client:19882025-e962-9db7-fd08-722b71900142@skybreak.member1.mongolayer.com:27017/goe_meteor_com
where mongodb://client:PASSWORD@skybreak.member1.mongolayer.com:27017/goe_meteor_com
PASSWORD is to be used at the -p option at step 2. It's valid for one minute
---
step 2: import the data from your local copy /backups/ (replace -p with the result labeled PASSWORD above)
mongorestore -u client -h skybreak.member1.mongolayer.com:27017 -d devgoe_meteor_com -p 8b2a8f22-b017-fd57-a817-ccaef76d7a8e /Users/erlendve/Dropbox/Aws/goe/backups/goe_meteor_com/
IDEONE:
user: gameofexams
pass: ba5ag7rU
erlendve
oblig4
erlendlv
gameofexams
popeye
123456789