ytddewqf Posted August 15, 2020 Share Posted August 15, 2020 (edited) 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 August 15, 2020 by LoneTraveler 2 Quote Link to comment
Januszmirek Posted August 30, 2021 Share Posted August 30, 2021 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? Quote Link to comment
tomwhi Posted October 11, 2021 Share Posted October 11, 2021 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! Quote Link to comment
kwiksilver Posted October 11, 2021 Share Posted October 11, 2021 Unraid uses the root user. There should be no reason for sudo in your commands. Quote Link to comment
Januszmirek Posted October 13, 2021 Share Posted October 13, 2021 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? Quote Link to comment
ytddewqf Posted October 17, 2021 Author Share Posted October 17, 2021 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. Quote Link to comment
DANgerous25 Posted December 8, 2023 Share Posted December 8, 2023 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: Running the OP's script to backup my VaultWarden container to a cloud service, Then I created a second VaultWarden container (pointing it to a different data directory), Stopped the container, From the command line I copied back from the cloud service to overwrite the files in the new data directory, Then fired up the 2nd container And finally tested it by logging in and checking my settings and vault contents. Boom, I essentially have a duplicate working VaultWarden. Quote Link to comment
Januszmirek Posted January 7 Share Posted January 7 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: Running the OP's script to backup my VaultWarden container to a cloud service, Then I created a second VaultWarden container (pointing it to a different data directory), Stopped the container, From the command line I copied back from the cloud service to overwrite the files in the new data directory, Then fired up the 2nd container 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;) Quote Link to comment
DANgerous25 Posted January 8 Share Posted January 8 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!). Quote Link to comment
Januszmirek Posted January 8 Share Posted January 8 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? Quote Link to comment
DANgerous25 Posted January 8 Share Posted January 8 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). 1 Quote Link to comment
Recommended Posts
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.