0

I have a postgresql database stored on a remote machine accessible via ssh. Due to space issues, I am unable to store the backup (pg_dump) on the remote server, I was wondering if I could save it on my local machine directly?

2
  • 1
    Simply use pg_dump by specifying a remote host like sudo -u postgres pg_dump -a -h remote_host -p remote_psql_port -U postgres -d db_name > path_to_store_backup.sql
    – AndreaM16
    Aug 21, 2018 at 8:31
  • 2
    pg_dump is a client application you can run it on any computer that can connect to your database server
    – user330315
    Aug 21, 2018 at 8:32

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.