fribse wrote:Thankyou for the kind words, nice to know that somebody else than me, and a few select users, benefits of it.
You have a directory under the mysql database directory called arc.
There should only be databases under the mysql database directory!
If you've made a backup or archive and put it in a directory there, move it elsewhere.
It doesn't use a list of databases, it just looks for the available directories.
# Listing all the databases
echo 'show databases;' | mysql -u username--password=password | sed '1d' | while read LINE
echo "Backing up database $LINE to /mysql/$LINE.sql"
I would love to be able to send a message to the log of the server, but I'm not aware of how to do that...
/sbin/write_log "your message here" [1 | 2 | 4]
/sbin/getcfg Public path -f /etc/config/smb.conf -u | cut -f 3 -d '/'
Don wrote:Hi fribse,
Going to give your script a try. Great work BTW.I would love to be able to send a message to the log of the server, but I'm not aware of how to do that...
Use the following command to write to the system log file
Users browsing this forum: No registered users and 4 guests