# Backing up the sql database from the vaultwarden docker container ## Configuration Please create a configuration file which defines the following variables. ``` #Where to put the dumps backupFilepath="/var/vaultwarden/backup/" #How many dumps shall be kept rotationDays=7 #Database settings dockerContainerName=docker_vaultwarden #Location of the vaultwarden data folder dataFilePath="/var/data/vaultwarden/" ``` Pass this configuration file as parameter to the script. To automate the backup job, I recommend to put the script in your crontab: ``` 50 2 * * * root /root/scripts/backup/vaultwardenBackup/backup_vaultwarden /root/scripts/backup/vaultwardenBackup/vaultwardenBackup.conf ```