When using a MySQL database, it’s often very useful to create
backups of the databases.
This can be done with the MySQL dump
command, but this does not
allow for separate week, month and year backups. On the web I found the
tool automysqlbackup
and that did almost what I wanted. I changed it a lot and my version can
be found here or here.