I have quite a few applications running in docker containers. (For example gitea, jenkins, node-red, nextcloud, bookstack). Sarkari Result The all store their data in separate directories mounted as volumes in the docker container.
I want to back up the applications using ‘restic’ as I like it. Pnr Status I have a few options.
-
For each application, shut down the docker container, perform backup, restart container.
-
For each application use LVM snapshot and back up the snapshot
-
Just back up the volume as it is.
i want to check my assumptions. -
This is the only method that I can 100% guarantee to work as the application will be shut down for the backup.
-
This will at least give a consistent backup. It will likely work reliably with any application that is able to reliably survive crashes and power outages
-
Probably not the best idea as it might capture inconsistent updates to files?
Is this correct, and what do other people do to get reliable backups?