ok, i c.
in mssql logs (
bwdata/logs/mssql/errorlog) i found this:
Backup Error: 3041, Severity: 16, State: 1.
Backup BACKUP failed to complete the command BACKUP DATABASE vault. Check the backup application log for detailed messages.
vault here is the name of the referenced database. gotcha.
when installing with
bitwarden.sh. the script asks you for the name of the database. the default is
vault. this is what i accepted in the first setup.
the second time around, i set a different name:
if you set a name here, this is not reflected in the mssql container. i should better say it is not reflected in all the important places.
within the mssql container, there is a file, where the backup job is defined →
in the container i did not find an editor, so i copied the file to the host.
docker cp bitwarden-mssql:/backup-db.sql .
now change the db name in there from
vault to your respective name
SET @DatabaseName = 'db_bitwarden'
SET @DatabaseNameSafe = 'db_bitwarden'
and then copy back the file into the container
docker cp backup-db.sql bitwarden-mssql:/backup-db.sql
now lets see what happens tonight. i will update here.