backup and restore postgres

  Uncategorized
ncat --listen --keep-open 0.0.0.0 30307 < <(pg_dump aff)
ncat 18.136.190.53 30307 | gzip > aff.gz
cat aff.gz | gunzip | psql aff2