MySQL is one of the most popular open source database management system for the development of interactive websites.
If your server stores its sensitive data in a MySQL database, you
will most definitely want to backup that information so that it can be
restored in case of any disaster.
Below is a backup script for MySQL databases (please make sure you will change MYSQL_PASS):
Change website
From Jan 16 2015,
All post content will be move to we's offical website with many content...
Can access website here: http://justox.com
Thanks for your visit!
Showing posts with label Scripts. Show all posts
Showing posts with label Scripts. Show all posts
Thursday, 19 December 2013
How To Update all CentOS/RHEL servers remotely using a shell scripts
#!/bin/bash
#
# A simply shell script to update remote CentOS/RHEL servers
# You must have ssh public and private key installed. This will save a lot of time if you
# have many servers.
#
# by Adi http://blog.up-link.ro
# May 2010
# an array to store ssh commands for each server
hosts=(
"ssh root@192.168.1.1 yum update -y"
"ssh root@192.168.2.1 -p 2222 yum update -y"
"ssh adi@192.168.3.1 -t sudo '/usr/bin/yum update -y'"
)
# read the array and launch the ssh command
for sshcmd in "${hosts[@]}";do $sshcmd;done
#
# A simply shell script to update remote CentOS/RHEL servers
# You must have ssh public and private key installed. This will save a lot of time if you
# have many servers.
#
# by Adi http://blog.up-link.ro
# May 2010
# an array to store ssh commands for each server
hosts=(
"ssh root@192.168.1.1 yum update -y"
"ssh root@192.168.2.1 -p 2222 yum update -y"
"ssh adi@192.168.3.1 -t sudo '/usr/bin/yum update -y'"
)
# read the array and launch the ssh command
for sshcmd in "${hosts[@]}";do $sshcmd;done
Subscribe to:
Posts (Atom)