Alibabacloud.com offers a wide variety of articles about linux server backup best practices, easily find your linux server backup best practices information here online.
Brief introduction
For the choice of Linux as an application platform for small and medium-sized enterprises or Web sites, often face how to achieve remote Data backup or Web site mirror image of the problem, although there are commercial backup and mirror products to choose from, but these products are often too expensive prices. So how to use free software to e
id_rsa.pub to the/root/. ssh/authorized. keys file of the ssh server.
In this way, the server can use the public key to authenticate the root user. The client authenticates the server by automatically downloading the public key from the server during the first connection and placing it in ~ /. Ssh/known_hosts.
Last st
MySQL backup script in Linux:
#! /Bin/bash
# Mysql autobackup shell # write by tuspark.cn
# ------------------- User name and password related to the database, database name to be backed up, backup directory, etc.
Dbuser = root
Dbpasswd = XXXXX
Dbserver = localhost
Dbname = XXXXX
Dbopt = -- opt
Backupdir =/dcbackup/
# ------------------- Whether to enable FTP rem
Mysql Installation
The 2nd Redhat 9 discs provide Mysql RPM packages for easy installation. This RPM package has: mysql-3.23.54a-11.i386.rpm
Mysql-server-3.23.54a-11.i386.rpm
Mysql-devel-3.23.54a-11.i386.rpm
During installation, you can use this disc for installation, or download the latest RPM package from the Internet, and then install it.
The following uses the RPM package as an example to introduce the Mysql installation process. If you have insta
mysqlbinlog command option is as follows:--start-datetime--stop-datetime--start-position--stop-positionExample: Mysqlbinlog--start-position 177--stop-position 331 mysql-bin.000004;Mysqlbinlog--start-datetime= ' 16-07-07 13:32:07 ' mysql-bin.000004;Scrolling binary log: FLUSH LOGS;6. Relay LOG: An event that is copied from the binary log file of the primary server and saved as a log file;7. Transaction log: The transactional storage engine is used to
, with Cron to achieve a daily 0-point automatic backup
The code is as follows
Copy Code
* * * * */home/www/data/bash.sh >/dev/null 2>1
In this way, 100M data tables are generated daily, compressed to more than 7M
Method Two
Shell scripts for automatically backing up databases under LinuxThe program on the Linux server upd
. SyncthingSyncthing is an open-source service that can replace BitTorrent Sync. This means that your data is not transmitted through any server. However, without the support level provided by BitTorrent Sync, your experience may not be equally reliable. The installation of these two services is similar, so if you prefer an open system, you should try Syncthing first.Not all services are satisfactoryIf you have stored the file somewhere and are switch
Article Title: Linux Case Study: Amanda centralized backup instance (1 ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Amanda (Advanced Maryland Automatic Network Disk archive Ad
Rsync is a data image backup tool in unix-like systems. It can be used not only in linux systems, but also in windows systems and cross-platform data backup. Now many webmasters use it.
Requirement: content on a server is backed up to a remote disaster recovery server on a r
server configures the virtual user's password file[Email protected]/]# echo "rsync_backup:123456" >/etc/rsync.password[[email protected]/]# cat/etc/ rsync.passwordrsync_backup:123456 #注: Rsync_backup for Virtual user, 123456 for this virtual user's password [[email protected]/]# chmod 600/etc/ Rsync.password #为密码文件提权 for added safetyThird, the master server configures the virtual user password and tests[[e
. If you have installed Mysql during RedHat installation, you can skip the following installation steps.Run the rpm-qa | grep mysql command to check whether Mysql is installed in Linux.
498) this. width = 498; 'onmousewheel = 'javascript: return big (this) 'src = "/files/uploadimg/20051017/1639300 .jpg" border = 0>: Check whether mysql is installed in Linux.If the system is not installedPerl-CGI-2.81-88.i386.rpmPerl-DBI-1.32-5.i386.rpmPerl-DBD-Mysql-2
Reprint Please specify the source http://blog.csdn.net/xingjiarong/article/details/47282687Recently in the configuration of CentOS server, we all know that the configuration process may be complex, sometimes error, can not configure the error can not be restored to reload the system, so it is important to do a good job of the system backup.The backup of Linux is
Fix for Linux file system error Ddrescue replace DD Recovery software backup Super blockA recently processed Linux server power outage causes the file system to not read and write, the data is not availableExample, now summarizes the Linux file system error repair method.EXT
Mysql automatic shell backup in linux
#! /Bin/bash # mysql backup script # backup principle: #1 # list all databases; #2 # list each table using each database, in addition to the specified ignored database; #3 # Use mysqldump to export each table to a file: host name, year, month, day, database, or table. mysqldump. SQ
Copy the original server's configuration file back to the new server Authz, passwd, svnserver.conf2. Incremental backup#svnadmin dump/svn/svn/app-r 5200:5600--incremental >/svn/svndump/app_56005200 is the latest version at the time of the last full-volume backup, and 5600 is the current latest version.Import: Svnadmin Load/svn/svn/app Svnadmin Hotcopy Method:1.
Before using Windows Server for file backups, Syncfolders is often used to implement incremental backups of files. Now the company's backup server replaced by the CentOS system, want to implement incremental backup thought of rsync. But previously in the study only used RSYNC-AV, unable to achieve incremental
Rsync is a data image backup tool in Linux. It can be seen from the software name-remote sync. Rsync supports most Unix-like systems, including Linux, Solaris, and BSD. The latest version of rsync can be found at http://rsync.samba.org/rsync. Its features are as follows:1. images can be used to save the entire directory tree and file system.2. It is easy to maint
This article describes how to back up and restore a DB2 database in a Linux environment. The following article describes how to back up and restore a DB2 database in a Linux environment, I hope it will help you in this regard.
Solution, Linux, environment, database Linux, database, Environment
Restore the database bac
In DHCP, automatic IP Address Allocation is very useful. Therefore, we need to configure DHCP in network settings. Here we will mainly explain DHCP backup and Linux DHCP services.
DHCP backup
In a large-scale LAN, network management generally uses DHCP servers to uniformly allocate TCP/IP configuration information to clients. However, the sky is unpredictable. Hu
Tags: multi-master one from MySQL hot backup Linux live SyncIn the previous article http://5148737.blog.51cto.com/5138737/1570274 how to make a MySQL hot backup in Linux, belonging to a master one from the situation, but most of the situation is more than one host backup to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.