Agus Priyadi and Mafia.Or.ID

blog all about (brains colocations)

Scripts Mirror yang berjalan sekarang

Posted by mafiaid on 18 August 2006

rsync -avz -e ssh --exclude "wp-config.php" $srcdir $sshuser@$sshhost:$sshbackdir
mysqldump --add-drop-table -u$sqluser -p$sqlpasswd $sqldb > $dbname.sql
scp $dbname.sql $sshuser@$sshhost:
ssh -C -x $sshuser@$sshhost 'mysql -u$dbuserback -p$dbpassback $dbbackup
< $dbname.sql'

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: