Restore mongodb from compressed gz file Sep 4, 2017 gunzip -c filename.gz | psql -U user --dbname dbname