Archive for backup
Postgresql backup and restore
To backup all databases on the server:
- su – postgres
- pg_dumpall > db.backup
To restore from previously created backup:
- su – postgres
- psql -f db.backup
To backup all databases on the server:
To restore from previously created backup: