Giter VIP home page Giter VIP logo

Comments (2)

dadatuputi avatar dadatuputi commented on August 15, 2024

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.

from bitwarden_gcloud.

dadatuputi avatar dadatuputi commented on August 15, 2024

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
    • ${PWD}/bitwarden:/data:ro
    • ${PWD}/bitwarden/rclone:/data/rclone
    • ${PWD}/bitwarden/backups:/data/backups

There are likely scenarios that I could imagine:

  • New users - use new compose and new env template: OK
  • Old users get the new compose - use new compose and old env: Probably OK
    • 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.
    • Resolution: Most old users won't have an issue. If they update their 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.

from bitwarden_gcloud.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.