Automysqlbackup is a great tool. It's setup and configuration can be found at many other sites. When you try to run it out of the box, you will get something like this:

./automysqlbackup.sh.2.5: Command not found.

To run it in FreeBSD, you need to edit a single line. Automysqlbackup.sh.2.5 is a bash script, and it references the path '/bin/sh'. In freebsd, bash is installed at '/usr/local/bin/bash.' If you haven't already, install bash:

pkg_add -r bash

Then all you have to do is edit automysqlbackup.sh.2.5. Look for

#!/bin/bash foo

and change it to

#!/usr/local/bin/bash

Now you should be able to launch it properly by running './automysqlbackup.sh.2.5'. creating a symlink would probably work, but i like this better.


Comments

comments powered by Disqus