# Backup task vs container volume backup?

**URL:** <https://community.sonatype.com/t/backup-task-vs-container-volume-backup/8779>\
**Category:** Sonatype Nexus Repository\
**Created:** [June 7, 2022, 8:05am UTC](https://community.sonatype.com/t/backup-task-vs-container-volume-backup/8779 "2022-06-07T08:05:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![walas19992010](https://avatars.discourse-cdn.com/v4/letter/w/8e7dd6/32.png) [@walas19992010](https://community.sonatype.com/u/walas19992010)\
**Post date:** [June 7, 2022, 8:05am UTC](https://community.sonatype.com/t/backup-task-vs-container-volume-backup/8779/1 "2022-06-07T08:05:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)\
**Post date:** [June 8, 2022, 1:09pm UTC](https://community.sonatype.com/t/backup-task-vs-container-volume-backup/8779/2 "2022-06-08T13:09:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![walas19992010](https://avatars.discourse-cdn.com/v4/letter/w/8e7dd6/32.png) [@walas19992010](https://community.sonatype.com/u/walas19992010)\
**Post date:** [June 11, 2022, 10:31pm UTC](https://community.sonatype.com/t/backup-task-vs-container-volume-backup/8779/3 "2022-06-11T22:31:20Z")

</div>

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 ?
