...
- Create dumps of current prod data for both BTA and LDE.
On develro@phoebe run
Code Block pg_dump -h phoebe -U bta-ro -f bta.dump.txt --data-only bta-prod p: hwSvaL1e ##pg_dump --data-only -h phoebe -U lde-ro -f lde.dump.txt lde-prod pg_dump -F custom -h phoebe -U lde-ro -f lde.dump.custom lde-prod p: 7WVEBTTfIvuh
Copy the files over to the test server via your home machine:
Code Block scp develro@phoebe:*dump* . scp *dump* bta@iapetus:
On bta@iapetus, delete contents of the two databases and restore from the dumps.
Code Block [bta@iapetus ~]$ psql -d bta-devel delete from broadcasttranscodingrecord ; delete from programmediainfo ; delete from reklamefilmtranscodingrecord ; DELETE FROM thumbnailextractionrecord ; \q [bta@iapetus ~]$ psql -d bta-devel -f bta.dump.txt
Code Block [bta@iapetus ~]$ psql -d larm-doms-exporter-devel -U larmde -h iapetus -W p: LVf0lLbb larm-doms-exporter-devel=> delete from domsexportrecord ; \q [bta@iapetus ~]$ pg_restore -d larm-doms-exporter-devel -U larmde -h iapetus --data-only -W lde.dump.custom p: LVf0lLbb
Install LDE on lde@iapetus
Set REJECTED exports to PENDING
Code Block larm-doms-exporter-devel=> update domsexportrecord set state='PENDING' where state='REJECTED';
- Run the producerconsumer.
- Get new programs by running the consumerproducer.
- Run the producer consumer again.