python -m ensurepip --default-pip
Month: April 2024
Postgres backup and restore
# backup
pg_dump example -F t -N views --no-owner -h host -U user --role=postgres -v > example.tar
# restore
pg_restore --dbname=example -h localhost -U user -v example.tar