Can't restore a 20GB backup on a 60GB Digital Ocean instance (fresh Discourse install)

I would first follow @codinghorror recommendation here and do a restore of database only and copy files by hand.

Additionally, for meta when I restored it sat for about 30 minutes on CREATE INDEX, you are just going to have to wait it out. To speed it up somewhat you could increase: db_shared_buffers per: