jcs / rubywarden

An unofficial, mostly Bitwarden-compatible API server written in Ruby (Sinatra and ActiveRecord)
ISC License
592 stars 49 forks source link

How to backup and restore? #101

Closed Extarys closed 5 years ago

Extarys commented 5 years ago

Since I'm running this on a Pi with other services, I want to make sure I do this right so I don't lose my passwords!

Can I just copy the db folder, reinstall Rubywarden and copy the backup db over the original one? How does this work? I realized today I do not have any cronjob to backup my passwords.

What is the suggested way of backing them up?

jcs commented 5 years ago

Yes, the db/production/production.sqlite3 file is all you need to backup and restore.

Extarys commented 5 years ago

Ok thanks for confirming, I didn't want to mess that up!