Skip to content

Instantly share code, notes, and snippets.

View imaddi47's full-sized avatar
🏠
Working from home

Ankit Kumar imaddi47

🏠
Working from home
View GitHub Profile
@imaddi47
imaddi47 / postgresql_pg_dump__script.sh
Created January 23, 2022 01:28 — forked from vielhuber/script.sh
PostgreSQL: Backup and restore export import pg_dump with password on command line #sql
# best practice: linux
nano ~/.pgpass
*:5432:*:username:password
chmod 0600 ~/.pgpass
# best practice: windows
edit %APPDATA%\postgresql\pgpass.conf
*:5432:*:username:password
# linux