You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: data-sync/README.md
+21-1Lines changed: 21 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,6 @@
1
-
## Data Sync Ops
1
+
# Data Sync Ops
2
+
3
+
## Updating the data synchronization process
2
4
3
5
### The Short
4
6
@@ -75,4 +77,22 @@ Do the following:
75
77
585031190124.dkr.ecr.us-east-1.amazonaws.com/positron:data-sync and can be
76
78
`docker pull`-ed or referenced via Kubernetes and Hokusai.
77
79
80
+
## Running the data synchronization process
81
+
82
+
Positron is configured for daily data synchronization. [An export is scheduled from production](../hokusai/production.yml#L222), and [an import is scheduled for staging an hour later](../hokusai/staging.yml#L225).
83
+
84
+
If you need to run the data sync process on-demand, this can be done by pointing hokusai at the `data-sync` tag.
85
+
86
+
To export the data from production, run:
87
+
88
+
```sh
89
+
hokusai production run --tag data-sync 'sh ./export-mongo.sh'
90
+
```
91
+
92
+
This uploads the data to an S3 bucket, which can then be imported into staging:
93
+
94
+
```sh
95
+
hokusai staging run --tag data-sync 'sh ./import-mongo.sh'
0 commit comments