HI,
I want to backup automatically my vaultwarden, but I have some problems and I’m confused with my setup and I have security concerns too.
So my vaultwarden is running on docker on a Rpi 4 8GB.
On the host I use this exact command to backup volume (I only use for vaultwarden right now) :
docker run --rm --volumes-from bitwarden -v /backup:/backup busybox tar cvfz /backup/backup.tar /data
I created a /backup on the host at the root that’s why the
-v /backup:/backup
Moreover, I use duplicati for backup, so I tell duplicati to go /backup to backup the entire folder (potentially with other backups, not only vaultwarden) and it sends that to mega.nz
I went to /etc/crontab to insert the “docker backup” command but it doesn’t do anything at the time I specified so nothing happens.
I am really paranoid about losing my data, especially vaultwarden in this case, so I wanted to use syncthing to have it in multiple servers/clients in my local networks. But first thing is it really necessary to have that much command/software (docker backup + duplicati + syncthing) to do that ?
And moreover, if I get a ransomware on my Rpi 4, is this ransomware is going to infect every servers where vaultwarden backup is ?
And last thing last, I use this docker command to restore my data (manually) :
docker run --rm --volumes-from bitwarden -v $(pwd):/backup ubuntu bash -c “cd CONTAINERPATH && tar xvf /backup/backup.tar --strip 1”
(I use ubuntu image on this one because it doesn’t work with busybox)
But I don’t know when to do this command, after I pulled the vaultwarden image ? After I created the volume for vaultwarden ? After I started the vaultwarden container and created the volume ?
Thanks in advance for your time