Backup task vs container volume backup?

Hello,
We are running the nexus repo manager as a container with a volume. I am trying to perform a backup of the nexus repo manager.
I have tried to do it with 2 methods :

  • using the backup task to backup the OrientDB + backup the blob with tar.
  • backup the container volume with tar.

Both methods worked, but in the official documentation, it is recommended to use the first method. So I am asking why should we use the first method ? especially that the 2nd is easier to backup and recover.

Thank you

Orient DB does not support hot backups and you have a high risk of corrupting the database.

Thank you for you answer.
I am planning to stop the container or to switch DB to readonly before performing the backup. is this still not recommended ?