Backup
Logical Backup
Create backup
pg_dump -h localhost -p 5433 -U postgres -Fp postgres > mydb_$(date +%F).sqlRestore backup
psql -h localhost -p 5433 -U postgres -d my_new_database -f mydb_2025-09-26.sqlPhysical Backup
Last updated