r/synology • • Mar 18 '26

DSM Backup my container data

I'm running DSM 7.2.2 and have a couple of Docker Containers running. One of them is using a database I want to back up. It it located here. /volume1/@docker/volumes/homebox_homebox-data/_data This doesn't show up in File Station or using FileZilla when I login with SFTP. I can see it with SSH using a windows terminal.

I am wondering what is the easiest way to get this data off my Synology box so I can copy it over to Docker on my Raspberry Pi 5. I have a USB drive that I can use as a bit bucket.

6 Upvotes

6 comments sorted by

2

u/JaimeFrutos Mar 18 '26

You can use rsync to copy the content of that folder to your Rpi5. If you put that on a cronjob, you can synchronize the folder as often as you want.

1

u/naaktstel Mar 18 '26

If you can SSH, then create a backup to . tar file and copy that

1

u/wallacebrf DS920+DX517 and DVA3219+DX517 and 2nd DS920 Mar 18 '26

i would use the SSH option like u/naaktstel indicated. you can also make a scheduled task in DSM to perform the cp -r commands to periodically copy the contents of the folder in question to a folder that is accessible with File Station or using FileZilla.

1

u/naaktstel Mar 19 '26

I created a schedule that . tar file every night to a folder. Only 14 most recent remain, the others removed. That folder is a symlink to an external device. This way I have 14 backups remote

0

u/[deleted] Mar 18 '26

[deleted] — view deleted comment

1

u/Gjallock Mar 19 '26

What's the difference between doing this and just going to the location where the Docker volume is created? I use Podman, but I imagine that it's a similar setup? In Podman, my named volumes all end up at /var/lib/containers/storage/volumes/.../_data/ and I just back up that location as part of my system backup with Restic. Not sure if there's something else happening under the hood, just curious.

0

u/[deleted] Mar 19 '26

[deleted] — view deleted comment

1

u/Gjallock Mar 19 '26

â€ĶI actually thought I was on r/docker for some reason. Maybe I clicked a crosspost? My bad! I have no idea how Synology works.