# Backup docker volumes with Kopia?

**URL:** https://kopia.discourse.group/t/backup-docker-volumes-with-kopia/1310
**Category:** Support
**Created:** [July 31, 2022, 7:22pm UTC](https://kopia.discourse.group/t/backup-docker-volumes-with-kopia/1310 "2022-07-31T19:22:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![akash](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/akash/32/457_2.png) [@akash](https://kopia.discourse.group/u/akash)
#### Post date: [July 31, 2022, 7:22pm UTC](https://kopia.discourse.group/t/backup-docker-volumes-with-kopia/1310/1 "2022-07-31T19:22:25Z")

</div>

I came to know about Kopia and finding it really amazing and interested.  
I’m selfhosting many applications on my server via docker and I want to backup the volumes of those applications.  
The thing is that I use named volumes for best performance.  
Now the issue is that normal users can’t access the /var/lib/docker/volumes path due to permission issues.  
So how do I backup those volumes with Kopia?  
Is there any way?  
I want to avoid setcap since it is somewhat problematic in many scenarios.  
I found the Kopia docker image, but there’s no guide/tutorial that how it should be used.  
Please help

---

<div class="post-metadata">

### Author: ![basldfalksjdf](https://avatars.discourse-cdn.com/v4/letter/b/ce73a5/32.png) [@basldfalksjdf](https://kopia.discourse.group/u/basldfalksjdf)
#### Post date: [August 1, 2022, 5:39am UTC](https://kopia.discourse.group/t/backup-docker-volumes-with-kopia/1310/2 "2022-08-01T05:39:26Z")

</div>

Kopia cannot backup files/folders it does not have read access to. You will need to install/run Kopia with a user that has access to `/var/lib/docker/volumes`.

I am not familiar with running Kopia via docker, but I assume you will still run into the same issue – Kopia run in docker would not have access to `/var/lib/docker/volumes` unless you grant it access, would it?

---

<div class="post-metadata">

### Author: ![akash](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/akash/32/457_2.png) [@akash](https://kopia.discourse.group/u/akash)
#### Post date: [August 1, 2022, 5:53am UTC](https://kopia.discourse.group/t/backup-docker-volumes-with-kopia/1310/3 "2022-08-01T05:53:18Z")

</div>

Yup, I think there should be some way, isn’t it?

Because without it, we won’t be able to restore and backup docker volumes which will be a big issue
