shivpatel / bitwarden_rs_dropbox_backup

Securely backup your bitwarden_rs data to Dropbox every night at 1AM
Apache License 2.0
48 stars 21 forks source link

Too dumb to understand the instructions #11

Open psociety opened 1 year ago

psociety commented 1 year ago

Right on start it says It's highly recommend you run via the docker-compose.yml provided. but then the initial setup instructions say docker run -it <...>.

So how exactly i have to set it up? Should i :

  1. Add the new service in my existing `docker-compose.yml
  2. Do docker-compose up -d --no-deps --build bitwarden_dropbox_backup to build the container
  3. Do docker run -it bitwarden_dropbox_backup i guess? Or since i built the service i have to enter the shell like docker-compose exec bitwarden_dropbox_backup sh? Also, isn't it recommended on the yml to have container_name set so it doesn't generate a random one?
amakerlife commented 4 months ago

Do you know how to set it up now?

tetreum commented 4 months ago

I went for another better documented solution:

  bw_backup:
     image: bruceforce/bw_backup
     container_name: bw_backup
     restart: unless-stopped
     depends_on:
        - vaultwarden
     volumes:
        - /YOUR_LOCAL_VAULT_FOLDER/:/data/
        - /YOUR_LOCAL_FOLDER_FOR_THE_BACKUP/:/backup_folder/
        - /etc/timezone:/etc/timezone:ro
        - /etc/localtime:/etc/localtime:ro
     environment:
        - DB_FILE=/data/db.sqlite3
        - BACKUP_FILE=/backup_folder/bw_backup.sqlite3
           # EVERY DAY 5am
        - CRON_TIME=0 5 * * *
        - TIMESTAMP=false
        - UID=0
        - GID=0
amakerlife commented 4 months ago

I went for another better documented solution:

Thank you, but it doesn't look like this image supports uploading to cloud storage?

tetreum commented 4 months ago

Apologies, i saw the issue and i thought the image would do the same. I'm running rclone along said image via a cron: 5 1 * * * rclone copy /YOUR_LOCAL_FOLDER_FOR_THE_BACKUP/backup.tar.xz cloudflarer2:vault >/dev/null 2>&1

In my case i'm uploading it to Cloudflare R2 as it has a free tier and it's east to setup.

amakerlife commented 4 months ago

Apologies, i saw the issue and i thought the image would do the same. I'm running rclone along said image via a cron: 5 1 * * * rclone copy /YOUR_LOCAL_FOLDER_FOR_THE_BACKUP/backup.tar.xz cloudflarer2:vault >/dev/null 2>&1

In my case i'm uploading it to Cloudflare R2 as it has a free tier and it's east to setup.

OK thank you, i will have a try.