Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

First script attempt......Bitwarden backup

Featured Replies

Hello all, 

 

I use the appdata backup pluggin for all my apps, however I want to make double sure that I have no issues retrieving my passwords for Bitwarden in the event of a system failure. 

 

As such, would the following script work in backing up my Bitwarden passwords to G-Suite via Rclone crypt (I'll set it to run daily);

 

sudo docker stop bitwardenrs
rclone copy /mnt/user/appdata/bitwarden/ GoogleDriveBackupCrypt:unraid/Bitwarden_Backup
sudo docker start bitwardenrs

 

This is my first attempt at any sort of script that I haven't simply copied and pasted from a tutorial.

 

Many thanks. 

 

***Edit***

It works, well when I press "run in background" anyway, so should be ok running via schedule. 

 

It's the simplest script I think you could run, but I'm quietly pleased I managed it myself. 😂

Edited by LoneTraveler

  • 1 year later...

Hello, I am interested in bitwarden backup as well. Does this scrtipt actually back up everything? Included atachements? Did you try to recover your backup? Did it work?

 

  • 1 month later...

This is a nice idea!

 

I'm going to try to pad it out a little more to answer the questions about what's backed up, and setting up cron jobs to do it on a scheduled but it's deffo I great starting point for anyone who wants an application aware backup of their bitwarden / vaultwarden vault! 

Unraid uses the root user. There should be no reason for sudo in your commands.

On 8/15/2020 at 2:36 PM, BeardedNoir said:

Hello all, 

 

I use the appdata backup pluggin for all my apps, however I want to make double sure that I have no issues retrieving my passwords for Bitwarden in the event of a system failure. 

 

 

Good to hear that the back-up process works for you. Just out of curiosity, did you actually try to recover that back-up into freshly new bw install, to make sure the back-up can be restored including all user accounts, and their data?

  • Author

Hello all, 

 

In the end I decided to use the free option that Bitwarden provides and backup to their servers. I didn't want to run the risk of needing to gain access to my server and there being a connection issue. 

  • 2 years later...
On 10/13/2021 at 4:49 PM, Januszmirek said:

 

Good to hear that the back-up process works for you. Just out of curiosity, did you actually try to recover that back-up into freshly new bw install, to make sure the back-up can be restored including all user accounts, and their data?

I know this is an old post but hopefully the question is still relevant to someone! Well, it was to me yesterday...

 

I can confirm that this method works. I tested it by:

 

  1. Running the OP's script to backup my VaultWarden container to a cloud service,
  2. Then I created a second VaultWarden container (pointing it to a different data directory),
  3. Stopped the container,
  4. From the command line I copied back from the cloud service to overwrite the files in the new data directory,
  5. Then fired up the 2nd container
  6. And finally tested it by logging in and checking my settings and vault contents.

 

Boom, I essentially have a duplicate working VaultWarden.

  • 5 weeks later...
On 12/9/2023 at 12:09 AM, DANgerous25 said:

I know this is an old post but hopefully the question is still relevant to someone! Well, it was to me yesterday...

 

I can confirm that this method works. I tested it by:

 

  1. Running the OP's script to backup my VaultWarden container to a cloud service,
  2. Then I created a second VaultWarden container (pointing it to a different data directory),
  3. Stopped the container,
  4. From the command line I copied back from the cloud service to overwrite the files in the new data directory,
  5. Then fired up the 2nd container
  6. And finally tested it by logging in and checking my settings and vault contents.

 

Boom, I essentially have a duplicate working VaultWarden.

That's great. Can you confirm that you were actually able to recover other users account data? I have multiple accounts set up on my vaultwarden instance and am interested to know if all these accounts can be restored when needed. Thanks;)

8 hours ago, Januszmirek said:

That's great. Can you confirm that you were actually able to recover other users account data? I have multiple accounts set up on my vaultwarden instance and am interested to know if all these accounts can be restored when needed. Thanks;)

 

My setup is only a single user, so I can’t answer conclusively. However, I don’t see why it shouldn’t work for all of your users, because all it is doing is essentially making a clone of your installation.

 

Best bet is to test it for yourself (as in the worst case scenario it will be good for you to know it does work and how to do it!).

7 hours ago, DANgerous25 said:

 

My setup is only a single user, so I can’t answer conclusively. However, I don’t see why it shouldn’t work for all of your users, because all it is doing is essentially making a clone of your installation.

 

Best bet is to test it for yourself (as in the worst case scenario it will be good for you to know it does work and how to do it!).

Fair point. So I just go and install the same container under a different name and it becomes a completely separate instance I can play with?

1 hour ago, Januszmirek said:

Fair point. So I just go and install the same container under a different name and it becomes a completely separate instance I can play with?

Yes exactly. The only thing to change is the data directory of the second container when you set it up. When you restore your backup, restore it to that 2nd data directory. (Otherwise you will restore over your existing instance which may result in data loss if you saved anything in your vault since your backup). 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.