New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should create and set "/etc/urbackup/backupfolder" during container start #3
Comments
thanks for this, changes included in the image and a new image has been built, please pull down latest and let me know if it works ok for you. |
Wow, amazing response time! I created a new container based on the latest image and confirmed that
Thank you! The fix works for me and probably will work for most people. I did notice that |
As mentioned in my comment above, the change in commit 7cf124d is perfect for enabling btrfs snapshots in my urbackup container and it's likely also sufficient for all common urbackup configurations. Feel free to close this issue or leave it open if you'd like to continue tracking making |
Right now, the
start.sh
script creates thebackupfolder
file in/var/urbackup
and populates it with the path to the/media
directory (which is mapped into the container) in the following code:arch-urbackup/run/nobody/start.sh
Lines 14 to 15 in 16f5d11
Some urbackup features also rely on this path being set in
/etc/urbackup/backupfolder
. In particular, in order to enablebtrfs
snapshots in urbackup, the backup path must be set in/etc/urbackup/backupfolder
as described here (quoted below):It's possible to create this file once the container is running and it will persist through restarts, until a new container image is pulled at which point urbackup becomes unable to use btrfs snapshots and falls back on traditional backups until
/etc/urbackup/backupfolder
is restored.Workaround
The directory and file can be created alongside the container by adding the following line to the post-args field in advanced settings of the docker container (note the leading semicolon)
; docker exec binhex-urbackup bash -c "mkdir -p /etc/urbackup; echo '/media' > /etc/urbackup/backupfolder"
The text was updated successfully, but these errors were encountered: