Wrapper script for database backup
This software is not production ready and only for personal use for somebody who understands the script and accepts the involved risks. There is no safety/sanity check or whatsoever!
- optional requires telegram-notify
-
Clone repo
-
Rename
database-dump.conf.exampletodatabase-dump.conf -
Make changes according to your liking/needs
-
Rename
database-backup.conf.exampletodatabase-backup.conf -
Make changes according to your liking/needs
-
use install.sh for installation under /usr/local/sbin/ or
-
place
database-dump.confas/etc/database-dump.conf -
place
database-backup.confas/etc/database-backup.conf -
rename
database-dump.shtodatabase-dumpand make it executeable$ chmod +x /path/to/database-dump -
rename
database-backup.shtodatabase-backupand make it executeable$ chmod +x /path/to/database-backup -
move executeables to desired path
-
-
have fun
database-dump [Options]
Options:
-h show help.
-a backup all databases into one file.
-s backup one database into one file.
use like -s <database-name>
-u database user.
use like -u <username>
-p database password.
use like -p <password>
-f path in which dump should be written.
use like -f </path/to/file>"