UtamaBeritaTutorialBlogTool



Backup MySQL database with AutoMySQLBackup

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.

Technorati Tags: ,

A Perl script to reboot ZTE 831

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;

Technorati Tags: , ,