pg_restore tar file code example
Example 1: tar unpack
tar -xzf packed.tar.gz
Example 2: tar file
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
tar -xzf packed.tar.gz
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file