I would like to back up my nextcloud data using duplicati, but I absolutely can‘t figure out how to give Duplicati access to the Nextcloud volume. Both are running fine in separate Docker containers. I can’t figure out how to properly mount the volume, below is my current compose for duplicati. Do I need to mount the volume as source? Does it need to be declared or mapped separately?
---
version: "2.1"
services:
duplicati:
image: lscr.io/linuxserver/duplicati:latest
container_name: duplicati
environment:
- PUID=1000
- PGID=1000
- TZ=XXX
- CLI_ARGS= #optional
volumes:
- /path/to/appdata/config:/config
- /path/to/backups:/backups
- /path/to/source:/var/lib/docker/volumes/073ac2751cd65ffd84750e578c38482905c3c7e4851a8cbb0bbbc5c33a285e84
ports:
- 8200:8200
restart: unless-stopped
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.
Rules:
Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.
No spam posting.
Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.
Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
No trolling.
Resources:
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
You’ve got your path backwards, do:
/var/lib/docker/volumes:/source
And then access the data at
/source
in Duplicati.Thanks! A drop down chevron has appeared next to the “Source Data” folder in duplicati, but it is still empty, showing neither the volume, nor its contents. Any idea what else I can try/modify?
Does it show the root / filesystem inside the container?
You may need to update the folder permissions on the Nextcloud volume to allow all users to read data.
I do see the entire filesystem, and now also the volume, but can’t access it.
I would suspect permissions, make sure the volume is set to allow all users to read from it
Yeah really seems most likely. I’ll start poking around permissions, thanks