Skip to content
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

Auto Backup Dir Env Variable in Docker-Compose.yml #50

Open
JB09 opened this issue Sep 5, 2019 · 3 comments
Open

Auto Backup Dir Env Variable in Docker-Compose.yml #50

JB09 opened this issue Sep 5, 2019 · 3 comments
Assignees

Comments

@JB09
Copy link

JB09 commented Sep 5, 2019

Any way to add this as an environment variable per: https://help.ubnt.com/hc/en-us/articles/226218448-UniFi-How-to-Configure-Auto-Backup? Or at least can you provide me with the {data.dir}/backup/autobackup docker path so I can create a bind mount on my host?

@JB09
Copy link
Author

JB09 commented Sep 5, 2019

Edit: Looking at this further in the dockerfile, it looks like the config named volume is inclusive of the backup directory, but I still think being able to define the "autobackup" directory directly would be useful for those that would like to store this data elsewhere (like a NAS) without tarballing the entire config volume.

@ryansch ryansch self-assigned this Oct 1, 2019
@ryansch
Copy link
Owner

ryansch commented Oct 1, 2019

It might be more interesting to add a commented out stanza to the docker-compose config showing how to bind mount a directory to the right place in the container. Thoughts?

@JB09
Copy link
Author

JB09 commented Oct 1, 2019

That's certainly the easiest way to handle it and is what I did to accommodate my automated backups for the time being. Just unfortunate you can't use a bind mount for a sub-directory of a named volume.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants