Hi,
after NAS reboot is done, backuppass file is no more in my /etc
is it on purpose we have to re-create it?
context: TS-109 II firmware version: 3.1.0 Build 0708T
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
do
echo "Backing up database $LINE to /mysql/$LINE.sql"
doneI 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
Return to Web Server & Applications (Apache + PHP + MySQL / SQLite)
Users browsing this forum: No registered users and 1 guest