Hello.
Last week I had to move some server to new hardware and I noticed that postgres databases were transfered with empty data. The database was created in the new server, the user was created, but the database was totally empty. Data was lost.
The transfer and restore log shows no error, and the database data was not left in the user's homedir for manual restoration.
I also noticed, too late, that cpanel backups are not backing up any postgres databases at all.
Here is the transfer log:
And here the restore log:
Both databases user_new and user_db are empty after the transfer. Both databases had it's data inside schemas other then "public" and the "public" schema was empty. The "public" schema was the only one restored.
Databases whose data was inside the "public" schema were transfered and restored correctly.
Now for the daily backups, there is no log at all for postgres databases, nothing about postgres is mentioned in the logs.
I already have a ticket about this issue, just wanted to post it here to share my issue.
Last week I had to move some server to new hardware and I noticed that postgres databases were transfered with empty data. The database was created in the new server, the user was created, but the database was totally empty. Data was lost.
The transfer and restore log shows no error, and the database data was not left in the user's homedir for manual restoration.
I also noticed, too late, that cpanel backups are not backing up any postgres databases at all.
Here is the transfer log:
Code:
[2019-08-28 01:31:05 -0300] Performing “Postgresql” component....
[2019-08-28 01:31:05 -0300] Grabbing PostgreSQL databases...
[2019-08-28 01:31:05 -0300] .........
[2019-08-28 01:31:06 -0300] Done
[2019-08-28 01:31:06 -0300] Grabbing PostgreSQL privileges...
[2019-08-28 01:31:06 -0300] Done
[2019-08-28 01:31:06 -0300] Completed “Postgresql” component.
Code:
Postgres
Preparing PostgreSQL restore …
Restoring PostgreSQL users …
Creating PostgreSQL databases …
Updating PostgreSQL privileges …
Restoring PostgreSQL databases …
Restoring the database “user_new” …
Restoring the database “user_db” …
Restoring PostgreSQL grants …
Postgres
Databases whose data was inside the "public" schema were transfered and restored correctly.
Now for the daily backups, there is no log at all for postgres databases, nothing about postgres is mentioned in the logs.
I already have a ticket about this issue, just wanted to post it here to share my issue.