# Duplicati in docker - 2 source volumes

**URL:** https://forum.duplicati.com/t/duplicati-in-docker-2-source-volumes/14714
**Category:** Support
**Created:** [July 9, 2022, 2:19am UTC](https://forum.duplicati.com/t/duplicati-in-docker-2-source-volumes/14714 "2022-07-09T02:19:29Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![olegus](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/o/3d9bf3/32.png) [@olegus](https://forum.duplicati.com/u/olegus)
#### Post date: [July 9, 2022, 2:19am UTC](https://forum.duplicati.com/t/duplicati-in-docker-2-source-volumes/14714/1 "2022-07-09T02:19:30Z")

</div>

Hello there, I have Duplicati docker installed on RPI . I’d like to backup two locations:

- my home folder
- another folder on a mounted drive (/mnt/media)

What are my options here? I only see one source volume in docker-compose, should I simply map it to / or is there more clever way ?

---

<div class="post-metadata">

### Author: ![olegus](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/o/3d9bf3/32.png) [@olegus](https://forum.duplicati.com/u/olegus)
#### Post date: [July 9, 2022, 7:03pm UTC](https://forum.duplicati.com/t/duplicati-in-docker-2-source-volumes/14714/2 "2022-07-09T19:03:59Z")

</div>

Symlink won’t work here, right?

---

<div class="post-metadata">

### Author: ![olegus](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/o/3d9bf3/32.png) [@olegus](https://forum.duplicati.com/u/olegus)
#### Post date: [July 9, 2022, 8:24pm UTC](https://forum.duplicati.com/t/duplicati-in-docker-2-source-volumes/14714/3 "2022-07-09T20:24:03Z")

</div>

Soft symlinks dont work - Duplicati just backing symlinks themselves. Did not try hard ones, ended up with exposing the whole root.

- /:/source

---

<div class="post-metadata">

### Author: ![JimboJones](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/j/e5b9ba/32.png) [@JimboJones](https://forum.duplicati.com/u/JimboJones)
#### Post date: [July 9, 2022, 10:26pm UTC](https://forum.duplicati.com/t/duplicati-in-docker-2-source-volumes/14714/4 "2022-07-09T22:26:31Z")

</div>

Welcome to the forums olegus.

There are a few options regarding how Duplicati deals with symlinks you can find more info [over here](https://duplicati.readthedocs.io/en/latest/06-advanced-options/#symlink-policy).

---

<div class="post-metadata">

### Author: ![olegus](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/o/3d9bf3/32.png) [@olegus](https://forum.duplicati.com/u/olegus)
#### Post date: [July 29, 2022, 4:34pm UTC](https://forum.duplicati.com/t/duplicati-in-docker-2-source-volumes/14714/5 "2022-07-29T16:34:40Z")

</div>

Ha! Looks like `--symlink-policy = Follow` should do the trick. Thanks, will try.  
Is it case sensitive? Is it " `--symlink-policy = Follow` or `--symlink-policy = follow`?

---

<div class="post-metadata">

### Author: ![drwtsn32](https://forum.duplicati.com/user_avatar/forum.duplicati.com/drwtsn32/32/2591_2.png) [@drwtsn32](https://forum.duplicati.com/u/drwtsn32)
#### Post date: [July 29, 2022, 6:36pm UTC](https://forum.duplicati.com/t/duplicati-in-docker-2-source-volumes/14714/6 "2022-07-29T18:36:34Z")

</div>

You don’t have to use symlinks if you don’t want to. You can map as many folders as you want into the docker container, and you can use any location, it doesn’t have to be `/source`.

On my Duplicati docker container I think I have 8 mappings to the host machine.

---

<div class="post-metadata">

### Author: ![JimboJones](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/j/e5b9ba/32.png) [@JimboJones](https://forum.duplicati.com/u/JimboJones)
#### Post date: [July 29, 2022, 7:35pm UTC](https://forum.duplicati.com/t/duplicati-in-docker-2-source-volumes/14714/7 "2022-07-29T19:35:17Z")

</div>

If you don’t have to use symlinks then great, if you do.

`--symlink-policy=Follow`

Case does not seem to matter and extra spaces seem to get striped when I add them in the GUI but will likely cause issues if your trying to script things so I’d suggest avoiding spaces when possible.

FYI: You can open the GUI, create a dummy job (or edit an existing one), go to Step 5 where you can add an advanced option from the dropdown, configure said advanced option to your liking, then click on the three vertical dots and choose “Edit as text” to see how those advanced options are specified in text.
