Linux

Where Does Kopano Store Config and Data?

Where Kopano keeps its server.cfg file, attachments, and database data on Linux, plus backup trio advice.

Last updated

Kopano centers on server.cfg with attachments branching to disk or database by mode. Config lives under /etc with database credentials inside, while messages ride MySQL. Docker images remap the same trio through volumes and variables.

Backup discipline means config plus attachments plus dump, matched to the storage mode in use. File mode scatters attachments across hashed folders that dumps alone cannot rebuild. Keep the trio versioned together across upgrades. Test restores on staging before trusting them in production.

Where Kopano stores this, by platform

Linux
/etc/kopano/server.cfg

Main server config with attachment mode and database credentials. Attachments default to hashed filesystem trees; database mode embeds blobs. Docker remaps through config and data volumes. Back up all three together.

Frequently asked questions

how do I back up Kopano

Copy /etc/kopano configs, the attachments tree, and a database dump with services stopped. File-stored attachments need filesystem copies; database mode needs only dumps. Mismatched modes across restores lose files silently.

files or database for attachments

Set attachment_storage to files with an attachment_path, or database to keep blobs inside MySQL. Files default with hashed subfolders for scale. Switching modes later needs the conversion script, not just a flag flip.

where is server.cfg

Point kopano-server at an alternate file with the config flag for testing. Distro packages split conf under /etc while tarballs keep install-relative trees. Diff shipped examples after upgrades for new options.

Notice an outdated path? Let us know.