how to save the current postgres state code example Example: populate db from command line postgres \i 'path/to/file.sql'