<\/span><\/h2>\nand execute the following command to make sure that all services ar up to date<\/p>\n
For Debian based systems execute<\/p>\n
apt-get update && apt-get upgrade<\/pre>\nFor RPM based systems execute<\/p>\n
yum -y update<\/pre>\n<\/span>3. On Debian based distributions AutoMySQLBackup is available in the repositories<\/span><\/h2>\nIf you are running Debian based distro AutoMySQLBackup is available in the repositories and you can easily install it by executing the following<\/p>\n
apt-get install automysqlbackup<\/pre>\n<\/span>4. On RPM based distributions you will have to download AutoMySQLBackup<\/span><\/h2>\nIf you have a RPM based distro you will have to download AutoMySQLBackup’s installation scripts, run and configure them on your server. In this tutorial we will install Automysqlbackup on a CentOS 7 VPS.<\/p>\n
<\/span>5. Download\u00a0AutoMySQLBackup<\/span><\/h2>\nDownload the latest version of AutoMySQLBackup to your server<\/p>\n
wget http:\/\/downloads.sourceforge.net\/project\/automysqlbackup\/AutoMySQLBackup\/AutoMySQLBackup%20VER%203.0\/automysqlbackup-v3.0_rc6.tar.gz<\/pre>\n<\/span>6. Install\u00a0AutoMySQLBackup<\/span><\/h2>\nCreate a directory for Automysqlbackup’s scripts and unpack the downloaded tar archive<\/p>\n
mkdir \/opt\/automysqlbackup\r\ntar zxvf automysqlbackup-v3.0_rc6.tar.gz -C \/opt\/automysqlbackup<\/pre>\nOnce the archive is unpacked run the Automysqlbackup installation script<\/p>\n
cd \/opt\/automysqlbackup\r\n.\/install.sh\r\n\r\n### Checking archive files for existence, readability and integrity.\r\n\r\nautomysqlbackup ... exists and is readable ... md5sum okay :)\r\nautomysqlbackup.conf ... exists and is readable ... md5sum okay :)\r\nREADME ... exists and is readable ... md5sum okay :)\r\nLICENSE ... exists and is readable ... md5sum okay :)\r\n\r\nSelect the global configuration directory [\/etc\/automysqlbackup]:\r\nSelect directory for the executable [\/usr\/local\/bin]:\r\n### Creating global configuration directory \/etc\/automysqlbackup:\r\n\r\nsuccess<\/pre>\nYou can use the default paths for the global configuration directory and the directory for the executable. You just have to press Enter when the paths are required.<\/p>\n
<\/span>7. Configure\u00a0AutoMySQLBackup<\/span><\/h2>\nNext, we have to configure AutoMySQLBackup. Open its configuration file located in the directory we set when we ran the installation script.<\/p>\n
vim \/etc\/automysqlbackup\/automysqlbackup.conf<\/pre>\nAnd uncommend and set the following confituration directives<\/p>\n
CONFIG_mysql_dump_username='root'\r\nCONFIG_mysql_dump_password='YourPassword'\r\nCONFIG_mysql_dump_host='localhost'\r\nCONFIG_backup_dir='\/var\/backup\/db'\r\nCONFIG_do_monthly=\"01\"\r\nCONFIG_do_weekly=\"5\"\r\nCONFIG_rotation_daily=6\r\nCONFIG_rotation_weekly=35\r\nCONFIG_rotation_monthly=150\r\nCONFIG_mysql_dump_port=3306\r\nCONFIG_mysql_dump_compression='gzip'<\/pre>\nOnce you are done with editing, save the configuration file. All settings are optional and there is description for all of them, so it is best to check the configuration file for more information about the settings of AutoMySQLBackup.<\/p>\n
Create a directory for the MySQL backups. This is the directory we set as ‘backup_dir’ in the configuration file.<\/p>\n
mkdir \/var\/backup<\/pre>\nIf you want to create a backup of your MySQL databases, run AutoMySQLBackup by executing the following<\/p>\n
automysqlbackup<\/pre>\nYou can also create a crontab entry to run AutoMySQLBackup at a specific time.<\/p>\n
That’s all. You can check the README file for more information on how to use AutoMySQLBackup.<\/p>\n
Of course you don\u2019t have to install and configure AutoMySQLBackup, if you use one of our Linux VPS Hosting services, in which case you can simply ask our expert Linux admins to install AutoMySQLBackup for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n
PS.<\/strong><\/span> If you liked this post, on how to install and configure AutoMySQLBackup, please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"we’ll show you, how to install AutoMySQLBackup on a Linux VPS. AutoMySQLBackup is very useful utility for creating daily, weekly … <\/p>\n
Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":25164,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1702,13],"tags":[974,457,39],"yoast_head":"\nHow to install and configure AutoMySQLBackup - RoseHosting<\/title>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n \n \n \n \n \n\t \n\t \n\t \n