-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdatadump.sh
executable file
·15 lines (12 loc) · 1.26 KB
/
datadump.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
curl http://0.0.0.0:3000/places/gb/areas/london/plaques.csv > db/open-plaques-london-$(date +'%Y-%m-%d').csv
curl http://0.0.0.0:3000/places/gb/plaques.csv > db/open-plaques-United-Kingdom-$(date +'%Y-%m-%d').csv
curl http://0.0.0.0:3000/plaques.csv?limit=200000000 > db/open-plaques-all-$(date +'%Y-%m-%d').csv
curl http://0.0.0.0:3000/places/gb/areas/london/subjects.csv > db/open-plaques-subjects-london-$(date +'%Y-%m-%d').csv
curl http://0.0.0.0:3000/places/gb/subjects.csv > db/open-plaques-subjects-united-kingdom-$(date +'%Y-%m-%d').csv
curl http://0.0.0.0:3000/subjects.csv > db/open-plaques-subjects-all-$(date +'%Y-%m-%d').csv
curl http://0.0.0.0:3000/places/gb/areas/london/plaques.json > db/open-plaques-london-$(date +'%Y-%m-%d').json
curl http://0.0.0.0:3000/places/gb/plaques.json > db/open-plaques-United-Kingdom-$(date +'%Y-%m-%d').json
curl http://0.0.0.0:3000/plaques.json?limit=200000000 > db/open-plaques-all-$(date +'%Y-%m-%d').json
curl http://0.0.0.0:3000/places/gb/areas/london/plaques.geojson > db/open-plaques-london-$(date +'%Y-%m-%d').geojson
curl http://0.0.0.0:3000/places/gb/plaques.geojson > db/open-plaques-United-Kingdom-$(date +'%Y-%m-%d').geojson
curl http://0.0.0.0:3000/plaques.geojson?limit=200000000 > db/open-plaques-all-$(date +'%Y-%m-%d').geojson