Backup apps, how to do it properly in Fangtooth?

I was wondering if there was a guide on how to properly backup datasets with app data on them. I have a couple of trueNAS apps running, and a couple of apps using dockge. All dockge apps are in an /mnt/apps/docker dataset, and then there are the handsful of TN apps that live inside the .ix-apps dataset.

My plan was to run a replication or an rsync to a dataset on another pool (spinning rust), but i don’t know if that’s the best way to handle backups for a pool with running apps on it. Should i run a script to stop all apps before backup and restart them after the backup is done? Is there a way to do this?
I would really appreciate it if someone could point me in the right direction because all info that i could find was related to pre-fangtooth non-docker apps.

There’s no guide, people host the data they worry about on dataset’s that are external to .ix-apps.

Basically it’s a hidden dataset not visible in the GUI, so you can use the CLI to make snapshots and zfs replication of it, or make manual rsync tasks using /mnt/.ix-apps

Does that play well with active apps and databases? I am just worried about corrupted databases when the apps are still running and you try to replicate/rsync that dataset.

The “proper” way especially for postgres databases is to stop the apps or to have the postgres pod create a dump file, so either you automatically the apps or you Unset apps pool with does the same but more dramatically haha