A bash script to dump daily/weekly mariadb and postgresql database.
It's recommended to put this into other partition from the DB, such as in /home.
useradd -m -d /home/dumper -s /bin/bash dumper
git clone https://github.com/domcloud/db-dumper /home/dumper/db
bash /home/dumper/db/main.sh