Backups
Methods for creating and restoring backups of DataForge.
Database backup
pg_dump and pg_restore can be used to create and restore backups of the PostgreSQL database. A database backup serves as a snapshot of the DataForge instance, allowing recovery of a near-exact replica of its state at the time of the backup.
Metric data and S3 storage are not included in the backup configuration.
Creating database backups
Dump a database with the name mydb into an SQL script file:
$ pg_dump mydb > db.sql
Restoring databases from backups
Restore the dump into a new database named newdb:
$ createdb -T template0 newdb
$ pg_restore -d newdb db.dump
For more information about PostgreSQL’s pg_dump and pg_restore , refer to the official documentation .