

Avoid relying on filesystem or VM snapshots as a backup method, as these are more complex operations where more things can go wrong, and recovery in such cases can be difficult or impossible for the typical user. Ideally, at least one copy should be stored remotely (e.g., cloud storage or a different computer). Sudo systemctl start bitwarden_rs.Vaultwarden data should be backed up regularly, preferably via an automated process (e.g., cron job). Sudo cp /mnt/dietpi_userdata/bitwarden_rs/db.sqlite3 /mnt/dietpi_userdata/bitwarden_rs/“backup.sqlite3.$(date +%F_%R)”

Is this bash file seems correct or need to change? any pro or cons for only data file or i have to copy all the folder “/mnt/dietpi_userdata/bitwarden_rs” My plan> stop bitwarden> wait two minute> copy database file with current date in name> wait two minute> start bitwarden i will retrieve that file via PROFTP server. for dietpi i just want to save backup file on same machine. my plan is i will make bash file & put it into cron command so that it will do that automatically. please suggest me if it is correct for dietpi installation also. in online search i found i have to backup only “db.sqlite3”. i will reproduce my vault by new empty installation & copy backup data file in to new installation (overwrite database file)& i will retrieve all my password vault. I just want backup of my bitwarden data so that if due to some reason my active installation fail.
