UtamaBeritaTutorialBlogTool


Month: March 2007

Backup MySQL database with AutoMySQLBackup

Posted By: zainal on March, 31 2007

AutoMySQLBackup can backup a single database or multiple databases on the server. Each database is saved in a separate file that can be compressed into gzip or bzip2.

The installation is very simple. Just download the one file bash script and save it somewhere, customize it to fit your setup, make it executable (chmod 777) and put it in cron.


No Comment | Category: MySQL

A Perl script to reboot ZTE 831

Posted By: zainal on March, 06 2007

A perl script to reboot ZTE ZXDSL 831 modem/router. Very useful if you want to schedule a reboot of the router.

#!/usr/bin/perl
use Net::Telnet;
$t = Net::Telnet->new( Timeout => 10 );
$t->open(”192.168.1.1″);
$t->waitfor(’/Login user: $/i’);
$t->print(’username’);
$t->waitfor(’/Password: $/i’);
$t->print(’password’);
$commands = “reboot\n”;
@response = $t->cmd(”$commands”);
print @response;


No Comment | Category: Perl