Directadmin MySQL backup script

Time for a new update.
I wrote a small script for Directadmin to dump al the users MySQL databases in .mysqlbackups in the users homedir.
I thought it may interest some of you.

I placed this little script in /etc/cron.daily.
Last thing to do is to set up an encrypted MySQL password.

When it prompt’s for your password. Enter the password for the da_admin user.

Supermicro IPMI error: [kcs] kcs_error_exit:

So, i tried to fetch the ip information of an Supermicro IPMI card.
In place of the wanted information, i was confused with this error:

After some searching, i noticed there was a special kernel module for this.
So let’s try to load it with the command:

And then see what happens….

VOILA! Problem solved!

Mac OS X disk space not freed

This morning i noticed my hard drive was almost full. So i decided to clean up some old data. After cleaning up i noticed not all the space has become available again.
About This Mac

I also noticed there was almost 90GB of data assigned to “Backups”.
I remembered configuring my Mac Book’s Time Machine to make backups on my NAS at home. So i thought it must have something to do with that.

After googling around a bit, i found out that if your on the way and the backup location is unavailable, Time Machine makes snapshots on local storage. When the backup locations becomes available again, Time Machine syncs the snapshots to your backup location and the disk space becomes available again!

Useful but i don’t need it, since i only use the Time Machine to have my data backed up on a regular basis. I don’t really want to go back in time every hour. I decided to turn this feature off.  Since you can’t do this in the Time Machine settings, it was a bit hard to find out how to do this. There is a command line tool called “tmutil” for configuring the Time Machine. It had quite a few options, most important for us now are “enablelocal” and “disablelocal“.

To turn of local backups type:

As we can see it has cleared up the space:

About This Mac

To enable local snapshots again simply use: