Refactor db-backup.sh to use custom database configuration to adapt variant database