Category Archives: Linux

How to do Painless MySQL Server Backups with AutoMySQLBackup

AutoMySQLBackup is a clever script that takes the pain out of setting up automated incremental daily, weekly, and monthly backups of MySQL databases.

wget http://heanet.dl.sourceforge.net/project/automysqlbackup/AutoMySQLBackup/AutoMySQLBackup%20VER%203.0/automysqlbackup-v3.0_rc6.tar.gz
tar zxvf automysqlbackup-v3.0_rc6.tar.gz
./install.sh

 

Quelle: How to do Painless MySQL Server Backups with AutoMySQLBackup | Linux.com

Run scripts on Linux every few seconds, faster than Cron can do it.

With Cron you can run php scripts every minute but not in shorter period of time. So what can you do when you need to run your script every 15 seconds or even 1 second ?

Create shell sctipt like this one fasterthancron.sh

#!/bin/bash
#This script run every seconds
while (sleep 1 && php /path_to_script/faster_than_cron.php) &
do
  wait $!
done

Reference :
Ivan Đurđevac : Run scripts on Linux/Ubuntu every few seconds, faster than Cron can do it..