Backup/Recover NextCloud Data

Hi all,

New to NextCloud (liking it so far), currently using NextCloud on an Ubuntu Headless Server VM installed via SNAP.

I’m curious what needs to be backed up from NextCloud if I want to do anything risky with this VM. My understanding is that for a small install like this with a hand full of users, I just need to back up the database? How would I find out where that is stored? Are there any other config files that would be nice to have?

I should also mention that my data is on a separate NAS, so even if NextCloud disappears my data will still be safe, hence why I am only asking about NextCloud in my question.

Thanks in advance!