One line gzip -dc YOUR_FILE_TO_RESTORE_TAR_GZ | pg_restore -c -d DATABASE_URL https://www.explainshell.com/explain?cmd=gzip+-dc+YOUR_FILE_TO_RESTORE_TAR_GZ+%7C+pg_restore+-c+-d+DATABASE_URL Two steps