Topic: How to create a real full backup/restore (with Postgres)
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.2.1 PGSQL edition.
- Deployed with iRedMail Easy or the downloadable installer: downloadable installer
- Linux/BSD distribution name and version: Ubuntu 18.94
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx): NGINX
- Manage mail accounts with iRedAdmin-Pro: No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi there,
What I'd like to do:
- I have iRedMail installed (with SOGo, no Roundcube) on a VPS and I'd like to be able to create a full backup as DR.
What I Backup:
- I runned the scripts from crontab to backup sogo and psql
- I archived the folder /var/vmail/vmail1
How I tried to restore:
- Install iRedMail on a fresh VPS
- copy vmail1 archive to /var/vmail/vmail1 (with right permissions - 0700 and vmail user)
- go to postgres user with: su postgres and restore the sql files from psql archive (psql -U postgres < file.sql)
- unarhive sogo and run sogo-tool commands
Where I have issues:
- My users are not restored (I have only postmaster user)
- sogo-tool is giving me errors that the user that I'm trying to restore is not existing
What should I do to be able to complete this full restore?
Regards,
Ciprian
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.