ttionya / vaultwarden-backup

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

Command Not Found When Using .env File With Multiple Remote Destinations #126

Closed Fiestaman closed 10 months ago

Fiestaman commented 10 months ago

When I add a second remote destination to my .env file, I get the following errors in the container logs and the second remote destination is not utilized. Backing up to original remote continues as normal.

/dev/fd/63: line 3: RCLONE_REMOTE_NAME_1:: command not found /dev/fd/63: line 4: RCLONE_REMOTE_DIR_1:: command not found

Here are the entries in the .env file:

RCLONE_REMOTE_NAME="VaultwardenBackup" RCLONE_REMOTE_DIR="/bucketname/VaultwardenBackup/" RCLONE_REMOTE_NAME_1: "storjVaultwardenBackup" RCLONE_REMOTE_DIR_1: "/bucketname/backup/"

However, I tried starting the container using -e flags while removing the two entries from the .env file and I did not get these errors. Second remote location loaded correctly and data was backed up to both locations. -e RCLONE_REMOTE_NAME_1=storjVaultwardenBackup -e RCLONE_REMOTE_DIR_1="/bucketname/backup/"

ttionya commented 10 months ago

RCLONE_REMOTE_NAME_1: "storjVaultwardenBackup" RCLONE_REMOTE_DIR_1: "/bucketname/backup/"

In your env file, kindly employ the use of the equals sign (=).