By Morgan Lucas Had a fair amount of help with this with one of the startups I work for. It takes a village and all.
I was tasked with checking restore speeds for a PostGRES Database that was hosted on an AWS Instance.
What if someone accidentally deletes everything? We can bring it back to a point in the past - provided we’ve done backups.
About 10 GB.
<aside>
💡 You can put time
in front of a command to see how long it takes, down to milliseconds!
</aside>
pg_restore
was an option, but I used psql
:How to actually upload to DB-A while in VM-A:
psql --host=rdstemplate-test.[rm].us-west-2.rds.amazonaws.com --username=test --dbname=postgres --password < demo-big-en-20125562.sql
One could also use pg_restore
We made sure the databases existed with \\l
and dropped and created with drop database [NAME]
and create database [NAME]
<aside> 💡 Some errors may still show up, even if the information is pushed to the database.
</aside>