adferrand / docker-backuppc

Docker container with BackupPC version 4.x/3.x based on Alpine distribution.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Archive persistence

guillonett opened this issue · comments

I'm working with rclone for off-site archive backups, I tried creating a subdirectory under /home/backuppc/archive using symbolic link but docker doesn't allow to do it out of his context

$ cd /var/docker-data/backuppc/home
$ ln -s /mnt/rclone/archive/mount archive

Also I tried mounting it with --bind option but had quite a few problems with the mount order.

# fstab
/var/docker-data/backuppc/home/archive /mnt/rclone/archive/mount none defaults,bind 0 0

It would be interesting to add a fourth volume to the image to persist the off-site archive on an external device, for example:

VOLUME ["/etc/backuppc", "/home/backuppc", "/data/backuppc", "/data/archive"]

Regards