Closed whyb0rn closed 1 year ago
That's not a bad solution, except I'm worried about those who have it in the old location getting a new docker-compose and not updating their .env and moving the file.
I'd like a solution that keeps backwards compatibility, especially when it comes to backups, but not sure there is one without being excessively hacky.
I did try to add a mount from ${PWD}/bitwarden/rclone.conf:/data/rclone/rclone.conf, however that fails to start when there is no rclone.conf in that location.
In the meantime I'm going to update the bitwarden mount to not be writable.
I took another look at this, and came up with the changes as you suggested @whyb0rn-
Changes:
.env.template
: move to new location
BACKUP_RCLONE_CONF=/data/rclone/rclone.conf
docker-compose.yml
: make data read only, mount new rclone
folder
There are likely scenarios that I could imagine:
rclone.conf
is still in /data
which is READ ONLY. This will continue to work for backups until they update their rclone conf using the instructions in the wiki.rclone.conf
they will get a read-only error, and hopefully find the fix in the wiki. I'm happy with this solution, and will be pushing the changes. Thanks @whyb0rn.
By default,
rclone.conf
file is located in the/data/rclone.conf
folder,data
folder inbackup
container is mounted as read-only, so rclone cannot create or modify the configuration file. Solution: change the path torclone.conf
and give the folder where the configuration file is located write permissions. Example: in.env
change the lineBACKUP_RCLONE_CONF=/data/rclone.conf
toBACKUP_RCLONE_CONF=/data/rclone/rclone.conf
and indocker-compose.yml
add- ${PWD}/bitwarden/rclone:/data/rclone
tovolumes: