Quick Answer
A Grommunio backup and restore plan needs three parts from the same day: the grommunio databases, the mailbox folders under /var/lib/gromox and the configuration under /etc. Take a filesystem snapshot or stop the Gromox services before you archive, because a copy of a live directory is not guaranteed consistent. Restore one mailbox into a test user before you need it.
Check which of the three parts already sits outside your server.
If you need a Grommunio backup and restore plan, start with what Grommunio's own backup and restore guide lists. It names three parts of one backup: the grommunio databases, the mailbox folders under /var/lib/gromox and the configuration under /etc. If one part comes from another day, your restore may not open.
This guide compares four methods and shows how to restore one mailbox when a user needs it back. If you match the method to what you need back, you will not find a gap on the day your server fails.
- If you need your whole server back after a failure, use the database dump and the file archive together.
- If you need one mailbox back, use a snapshot or a GXMT export.
- If you need mail that opens without a server, keep PST, EML or MBOX files made from a copy of your Gromox data.
Which Three Parts Must a Grommunio Restore Have From the Same Day?
On 15 November 2026 I read Grommunio's Operations page and the backup and restore guide. Both treat mail data and databases as separate parts. Private mailboxes sit under /var/lib/gromox/user and public folders under /var/lib/gromox/domain. The database named grommunio contains the users table that a restore needs.
When you archive a live directory, the guide warns that the copy is not guaranteed consistent. It tells you to use a filesystem snapshot or to stop the Gromox services while you archive. It also says replication is not a backup, because DRBD, storage replication and cluster failover copy deletions and corruption faithfully.
Who Needs a Restore Plan for Grommunio?
- An admin with a small server Your Grommunio machine has one disk and no backup yet.
- An admin with virtual machine snapshots Your hypervisor already takes snapshots and you wonder if that is enough.
- An admin with one unhappy user Your user deleted a folder last week and wants the mail back.
- An owner closing a server Your users need their mail in files after Grommunio is gone.
Which Grommunio Backup and Restore Method Fits Your Case?
Compare the four methods by what you must prepare and what each cannot do.
| Method | Requirement | Limit |
|---|---|---|
| File backup | mysqldump for the databases and tar or rsync for /var/lib/gromox and /etc | Needs stopped services or a snapshot for a consistent copy. A restore needs the same package versions |
| Snapshot | LVM, ZFS, btrfs or a virtual machine snapshot. gromox-snapshot on btrfs or a reflink filesystem | Restores a mailbox into the same mailbox only. The gromox-snapshot page gives no restore steps |
| GXMT export | gromox-exm2mt on the server for each mailbox | One mailbox for each command. Bringing it back needs gromox-mt2exm |
| File copy for Windows | A copy of /var/lib/gromox on a Windows PC and software that reads it | Saves files that open without Grommunio. Does not restore into a server. The trial saves 25 messages per folder |
I read all four in Grommunio's documents and on Univik's product page. They answer different questions. A server backup brings Grommunio back. Files bring your mail back to a person with Outlook or Thunderbird.
Five Steps to Back Up Grommunio With mysqldump and tar
Each command below comes from Grommunio's backup and restore guide. You need root access on the server and a backup target outside it.
- Record your versions. Enter
cat /etc/os-releaseandgrommunio-admin versionand save the output with your backup. Grommunio says to restore on the same package versions, so this record tells you what to install first. - Dump the databases. Enter
mysqldump --all-databases --single-transaction --routines --triggers --events > grommunio-mysql-all.sqlto save every database in one file. Grommunio's guide adds one more option that replaces existing databases when you restore. - Archive the mail and configuration. Stop the Gromox services or take a filesystem snapshot first. Then enter
tar --xattrs --acls -czf gromox-varlib.tar.gz -C /var/lib gromoxfor the mailboxes andtar --xattrs --acls -czf grommunio-etc.tar.gz /etc/grommunio* /etc/gromox /etc/nginx /etc/postfixfor the configuration. Add /etc/letsencrypt if you use Let's Encrypt. - Export single mailboxes (optional). For a per-mailbox backup enter
gromox-exm2mt -u user@domain -ars / > alice-full-splice.mt. The guide explains -a as including FAI items, -r as recursing and -s as marking objects for splicing into the target's matching folders. - Check and protect the files. Enter
sha256sum * > SHA256SUMSand copy everything to a place outside your server. The configuration archive contains database credentials and TLS private keys, so encrypt it and limit who can read it.
The Operations page lists more databases for the optional parts of Grommunio: grofiles, groffice, groarchive and grochat. The all-databases dump in step two covers them. If you use grommunio-dbconf, many file backups are not needed, because dbconf keeps configuration in the main database.
How Does a Grommunio Snapshot Backup Work?
Do this: Grommunio's Operations page lists LVM, ZFS, btrfs, KVM, VMware, Hyper-V and Veeam among tested options. It says snapshot backups let you restore mailboxes in seconds.
Do this: Its man page says it calls btrfs or cp --reflink, with an hourly timer by default and a default retention of 7 days and 4 weeks. The snapshot folder must sit on the same device as /var/lib/gromox, so one failed disk can take both.
Do this: The guide copies a mailbox folder from the snapshot over the live one. It says this cannot restore into a different mailbox. If you need another mailbox, use a GXMT export.
Grommunio Backup and Restore Steps for One Mailbox
A full restore follows one order: stop the services, put back the files, check ownership, restore the databases, start the services and verify. My guide to migrate Grommunio to a new server lists those commands. This section covers a single mailbox that needs mail back from a GXMT file.
- Create the target mailbox. Enter
grommunio-admin user create user@domainand set a password withgrommunio-admin passwd user@domain. Grommunio's guide starts with a new target mailbox. - Import the GXMT file. Enter
gromox-mt2exm -u user@domain < alice-full-splice.mtand restart gromox-http, gromox-midb and gromox-zcore with systemctl. The -u option names the target mailbox. The -t option prints each folder and the -c option continues after an error on one message. - Compare the folders. Sign in as that user and compare folder counts with your source mailbox. Import into an empty mailbox only, because Grommunio has no duplicate detection and a second import creates every message twice.
If your snapshot contains the mailbox you need, the guide uses a different order. It finds the mailbox folder with grommunio-admin user query, freezes and unloads the mailbox with gromox-mbop, copies the folder from the snapshot with its ownership and then thaws the mailbox.
Check the exact gromox-mbop syntax in its man page before you use it. Content that arrived after the snapshot is lost.
Add Mail Files That Open Without Grommunio
A server backup restores mail only into Grommunio. If you also want mail that opens without a server, Univik Grommunio Mail Recovery saves a Gromox data copy as PST, EML or MBOX files for each user you select. You use it on a Windows PC. The copy can come from a backup, an rsync copy or a snapshot.
- Copy the Gromox folder. Copy /var/lib/gromox with its subfolders from your backup or snapshot to a Windows PC. A partial copy lists only the users it contains.
- Add the copy. Start the software and select your copy. The users it finds are listed for you to choose from.
- Choose users and a format. Select the users, choose PST, EML or MBOX and name a save location. Add a folder selection or a date filter if one part of a mailbox is enough.
- Start the save. Choose your output folder and start. If it stops, select Resume. The log lists the mailboxes that finished.
- Open one file. Open one PST in Outlook or one EML file, then check that its folder tree matches the mailbox in Grommunio.
Limitations: the trial saves 25 messages per folder. The software saves mail files. It does not upload to a server or restore into Grommunio and it does not save users or server settings. Soft-deleted items are outside what gromox-export offers in Gromox 3.6 and Univik makes no promise about them.
Windows 11 or 10 with .NET Framework 4.8 is required. I have not timed a large Gromox copy, so if you plan many users, test a few in the trial first. My guide to export Grommunio to PST covers the Outlook side.
Windows reads your copied Gromox folder and saves mailboxes in a format your next program opens.
Download Free Trial Select a Licence - From $999Open one trial PST from your copy and compare its folders with the mailbox in Grommunio.
What If Your Grommunio Restore Does Not Work?
Do this: Grommunio's guide says to restore on the same MariaDB and Gromox versions and does not cover restores across major versions. Install the versions from your step one record before you restore.
Do this: The guide suggests gromox-mbck when a restored mailbox reports inconsistencies. If you copied live files, expect this most.
Do this: The guide says there is no duplicate detection, so importing a GXMT file twice creates duplicates. It also says to export and import with -s, because content otherwise ends up as a nested copy under Drafts.
If your copy will not open, Univik's Grommunio mail recovery page covers damaged copies.
Which Grommunio Pages Support the Steps Above?
I read Grommunio's Operations page, its backup and restore guide and the gromox-snapshot man page on 15 November 2026. Anything missing from those pages is missing from this guide too.
Product details come from Univik's backup page. Grommunio documentation changes between releases, so compare each command with the version on your server.
- A Grommunio backup needs the databases, the mailbox folders under /var/lib/gromox and the configuration from the same moment.
- Take a snapshot or stop the Gromox services before you archive, because a live directory is not guaranteed consistent.
- Replication copies deletions and corruption, so it is not a backup.
- A snapshot restores a mailbox into the same mailbox. Use a GXMT import for a different one.
- gromox-exm2mt exports one mailbox as a GXMT file and gromox-mt2exm brings it back.
FAQ: Grommunio Backup and Restore
How does a Grommunio backup and restore work?
Dump the databases with mysqldump and archive /var/lib/gromox and /etc from a snapshot or with the Gromox services stopped. Keep all three from the same moment. To restore, put the files and the dump back on the same package versions.
Is a copy of /var/lib/gromox enough for a Grommunio restore?
No. Grommunio's guide names the databases, the mailbox folders and the configuration as one backup. Archiving a live directory is also not guaranteed consistent.
Can storage replication replace a Grommunio backup?
No. Grommunio's guide says DRBD, storage replication and cluster failover copy deletions and corruption, so they do not replace a backup.
Which databases does a Grommunio dump cover?
The grommunio database is the main one. The optional parts use grofiles, groffice, groarchive and grochat. A mysqldump with --all-databases covers all of them.
How do I restore one Grommunio mailbox into a new mailbox?
Create the user with grommunio-admin user create. Then enter gromox-mt2exm -u user@domain with your GXMT file as input and restart gromox-http, gromox-midb and gromox-zcore.
Does gromox-snapshot restore a mailbox?
Its man page documents no restore steps. It also needs its snapshot folder on the same device as /var/lib/gromox.
Can I open Grommunio mail without a server?
Yes. Univik Grommunio Mail Recovery saves a Gromox data copy as PST, EML or MBOX files for the users you select on a Windows PC. It does not restore into Grommunio.
Can I test the Windows copy before I buy?
Yes. Every folder saves 25 messages in the trial, so test one user and open its file first.
