ttionya / vaultwarden-backup

Backup vaultwarden (formerly known as bitwarden_rs) SQLite3/PostgreSQL/MySQL/MariaDB database by rclone. (Docker)
MIT License
1.04k stars 119 forks source link

rclone version #81

Closed marklockwood-techie closed 2 years ago

marklockwood-techie commented 2 years ago

When configuring rclone on a headless device to use Google Drive, the auth method fails when approving the API. Google has deprecated the auth method in the packed version of rclone.

Tested manually using rclone 1.59.1 and can create a headless config on ARM6 Pi Zero

rclone config version in the docker run command shows rclone version 1.57.0-DEV

Possible issue is the ARM6 call for rclone in the Docker file; for linux/arm/v7 platform FROM rclone/rclone:1.59.1 AS image-linux-armv7 _for linux/arm/v6 platform_ FROM alpine:3.15 AS image-linux-armv6

ttionya commented 2 years ago

This is too bad, because alpine:3.16 is missing p7zip in arm/v6, so I replaced it with another build.

But the rclone in alpine:3.15 is only 1.57.0, so that caused the problem.

I will try to change the build method so that arm/v6 is also using the latest version of rclone.

ttionya commented 2 years ago

@marklockwood-techie ,

Hello, I fixed this issue in 1.14.3-beta.0, please help to make sure it works properly.

marklockwood-techie commented 2 years ago

Thank you for your quick response. It's really appreciated. Running the config now allows for the process to complete, however it does not seem to save the rclone,conf file

$ docker run --rm -it --mount type=volume,source=vaultwarden-rclone-data,target=/config/ ttionya/vaultwarden-backup:1.14.3-beta.0 rclone config

... Name Type ==== ==== BitwardenBackup drive

e) Edit existing remote n) New remote d) Delete remote r) Rename remote c) Copy remote s) Set configuration password q) Quit config e/n/d/r/c/s/q> q

$ docker run --rm -it --mount type=volume,source=vaultwarden-rclone-data,target=/config/ ttionya/vaultwarden-backup:1.14.3-beta.0 rclone config show

2022/09/07 06:05:23 NOTICE: Config file "/root/.config/rclone/rclone.conf" not found - using defaults ; empty config

ttionya commented 2 years ago

@marklockwood-techie It was my mistake, I released the fixed version v1.14.3-beta.1.

marklockwood-techie commented 2 years ago

An easy typo to make.

v1.14.3-beta.1 has allowed me to send my backups to Google Drive using the automatic backup. All is working correctly as far as I can see.

Thanks for your prompt responses.

ttionya commented 2 years ago

Released stable version v1.14.3.