Skip to content

Instantly share code, notes, and snippets.

@demirtasdurmus
Last active April 14, 2022 14:31
Show Gist options
  • Select an option

  • Save demirtasdurmus/a5e472db7b8dc4f035f7113f3644b4cb to your computer and use it in GitHub Desktop.

Select an option

Save demirtasdurmus/a5e472db7b8dc4f035f7113f3644b4cb to your computer and use it in GitHub Desktop.
#!/bin/bash
PGPASSWORD=mysupersecret pg_dump -h localhost -U postgres -p 5432 -Fc -d sampledb >
/Users/<username>/<path_to_dir>/sample.backup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment