For administrators, always ensure the Installation Directory and Home Directory are kept separate. Backing up the Home Directory backs up your data. Backing up the Installation Directory only backs up the software version. This separation allows for easier upgrades (overwrite Install, keep Home).
This is the for data persistence. It contains all user-generated content, attachments, indexes, plugins, and configuration overrides. Backups must include this entire directory. confluence directory structure