Lost attachmenst after restoration

Hello

We have a self-hosted installation,when we renewed the license he told us that our bitwarden version was too old, so we have done an update which made errors in the sql database and Bitwarden was down. We have in the web vault made a backup of the organization, recreate a new organization and restore the backup. We have our password but the attachments are missing. Can we recover attachments that I can see all the file in the attached folder?

Yes, it is possible to recover attachments in Bitwarden after restoring a backup, but the process may vary depending on your installation method and whether you’re using the Docker or non-Docker version of Bitwarden.

For Docker installations:

  1. Stop the Bitwarden container if it’s running.
  2. Locate the Bitwarden data directory on your host machine. This is usually a directory named ~/bwdata or /bwdata depending on your installation method.
  3. Inside the data directory, you should find a folder named attachments. This folder contains all the attachment files for your Bitwarden installation.
  4. Copy or move the attachments folder to a safe location as a backup.
  5. Start the Bitwarden container again.
  6. The restored attachments should now be visible in your Bitwarden web vault.

For non-Docker installations:

  1. Stop the Bitwarden application service.
  2. Locate the Bitwarden data directory on your host machine. On Windows, this is usually %DATA_DIR%\bwdata. On Linux, it’s typically /var/lib/bitwarden.
  3. Inside the data directory, you should find a folder named attachments. This folder contains all the attachment files for your Bitwarden installation.
  4. Copy or move the attachments folder to a safe location as a backup.
  5. Start the Bitwarden application service again.
  6. The restored attachments should now be visible in your Bitwarden web vault.

If you’re still unable to see the attachments after following these steps, you may need to consult the Bitwarden documentation or seek assistance from the Bitwarden community or support channels, as there might be additional configuration steps required depending on your specific setup.

It’s also recommended to regularly back up your Bitwarden data directory, including the attachments folder, to prevent data loss in case of issues like the one you experienced.