Here is example how to restore postgres dump from s3:
wget -O - 'https://s3.amazonaws.com/database.dump' | pg_restore -h somedomain.us-east-1.rds.amazonaws.com -p 5432 -d databasename -U username
But what is expected behavior if file is too large? Say 1Tb. How wget
and pg_restore
are synchronized? For example when wget
reads faster than pg_restore
consumes?