Where Does Confluence Store Its Data?
By default, attachments, extensions, and configuration files are stored in the Confluence Home Directory that is configured when Confluence is first installed. All remaining data resides in the configured database.
Optionally, attachments can be configured to be stored in the database instead of the Confluence home directory. See Attachment Storage Configuration.