Rsync and FTP (more for VSFTPD) in everyone's usual operation and maintenance work should have more contact, here I will not be introduced. Many friends think that the two can be equated with synchronization and backup, in fact, when the real use of these two are different, I generally will be the rsync simple redundancy, and the FTP is called Backup, the two in different working scenarios of the application is also different, as follows:
One, rsync can apply the following work scenario:
①nfs file in one of the main environment, some projects and Web sites can not do NFS dual-machine scheme, so consider using rsync as a redundant NFS machine (--delete parameters should be used with caution);
②rsync+inotify synchronization system, some Web sites due to network environment constraints, such as the machine is increasing with the scale of the site gradually increased into the IDC hosting room, the machine is more dispersed, and temporarily can not stop the business integration Server, The previous scheme may consider the use of rsync+inotify;
The ③ line of SVN with the code of the online machine before the synchronization, like our SVN server code is still relatively large, and the code is updated more frequently, so we will only be able to through the rsync with its own development of the program to synchronize a small number of stable code to the line.
FTP server I usually use in the backup warehouse, like the machine on the line, important data I usually do a double backup, that is, to do a local backup, and then FTP synchronization to the remote FTP server, the advantage is: In any case, the two machines at the same time the probability of physical hard disk failure is very low.
Times in the continuous development of new open source technology has been invented and innovative, but like rsync and FTP these old open source software or services actually have the application scenario, in the work we should combine their advantages, take long to avoid short, with the simplest technology to achieve complex work needs, their advantages to play incisively and vividly , this is a kind of geek (geek) Spirit bar.
This article is from the "Fuqin Wine" blog, please make sure to keep this source http://yuhongchun.blog.51cto.com/1604432/1586264
The application of Rsync and FTP (VSFTPD) in different working scenarios