blob: f575a8e231ab162fc407cd3076bee71817d17c97 [file] [log] [blame]
#!/bin/bash
# An example migration script.
perf-tool database backup alerts --local --config_filename=./configs/android-prod.json \
--connection_string=postgresql://root@localhost:26257/android?sslmode=disable --out=/tmp/alerts.dat
perf-tool database backup regressions --config_filename=./configs/android-prod.json \
--connection_string=postgresql://root@localhost:26257/android?sslmode=disable --out=/tmp/regressions.dat \
--backup_to_date=2020-01-01
perf-tool database restore alerts --local --config_filename=./configs/cdb-android-prod.json \
--connection_string=postgresql://root@localhost:26257/android?sslmode=disable --in=/tmp/alerts.dat
perf-tool database restore regressions --local --config_filename=./configs/cdb-android-prod.json \
--connection_string=postgresql://root@localhost:26257/android?sslmode=disable --in=/tmp/regressions.dat
perf-tool database restore shortcuts --local --config_filename=./configs/cdb-android-prod.json \
--connection_string=postgresql://root@localhost:26257/android?sslmode=disable --in=/tmp/regressions.dat