how to take postgres database backup using terminal code example Example: populate db from command line postgres \i 'path/to/file.sql'