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 efficiently implement remote
SSH to User B's identity without a password to log on to Server B.
Q: How do I use rsync through a firewall without compromising security? A: The answers are as follows:
This usually has two kinds of situations, one is the server inside the firewall, one is the server outside the fire wall. In either case, usually using SSH, it is best to create a new backup
security? A: The answers are as follows:
This usually has two kinds of situations, one is the server inside the firewall, one is the server outside the fire wall. In either case, usually using SSH, it is best to create a new backup user and configure sshd only to allow this user to enter through the RSA authentication method. If the server is inside the firewall, it is best to qualify the client's IP add
$ rsync -azv filename1 filename2
Use the preceding command to synchronize the files in filename2 at the same time as the files created in filename1,
It retains symbolic links, permissions, time tags, user names, and group names.
3. Synchronize files locally to the remote server
$rsync -avzfilename1 root@192.168.0.1:/home/redhat/filename2
The above command is to synchronize local filename1 to the host of r
that the user does not have access to. This is useful for situations where some files in a directory that need to be backed up should not be available to the backup person.Transfer loggingMake the Rsync server use FTP-formatted files to record download and upload operations in its own separate log.Log formatWith this option, users can customize the fields of the log file by
to install Rsync package
===================================
Server-side configuration:
===================================
1. Installation
Using the system's own rsync tool, insert the system boot CD and install the Rsync tool via RPM.
If using the source package ins
Use rsync and crond servers for WEB Service backup, rsynccrondBack up WEB services using rsync and crond serversScenario:A company has a Web server. The data in the server is very important, but if the hard disk breaks down, the data will be lost.Now the leaders ask you to back up data on other machines. The requiremen
rsync Simple
The role of rsync is like the general Linux CP and SCP directive, which can be copied from the source location to the destination location, however, rsync is more efficient than CP and SCP in a copy of the file, and supports both the connection and the devices, as well as the retention of the file's owner, group Group and permissions,
In the first c
For system administrators, the focus of their work should be on maintaining the normal operation of the system and providing services normally. A data backup problem is often involved here, as I know, 80% of system administrators do not care too much about the security of their servers. However, they are often quite interested in the backup image technology, however, because the software and hardware prices
inside the firewall, one is the server outside the fire wall.
In either case, usually using SSH, it is best to create a new backup user and configure sshd only to allow this user to enter through the RSA authentication method.
If the server is inside the firewall, it is best to qualify the client's IP address and reject all other connections.
If the client is inside the firewall, it is OK to simply allow t
For system administrators, the focus of their work should be on maintaining the normal operation of the system and providing services normally. A data backup problem is often involved here, as I know, 80% of system administrators do not care too much about the security of their servers. However, they are often quite interested in the backup image technology, however, because the software and hardware prices
.
RSYNC-VZRTOPG--progress--delete--password-file=/etc/rsyncd.secretes root@118.244.216.177::logs/data/lnmp
Note: The above command means to sync the files under this path (/USR/LOCAL/LNMP) of the server to the client's path (/DATA/LNMP).
To reverse, synchronize the client's files to the server, as follows:RSYNC-VZRTOPG--progress--delete--password-file=/etc/rsyncd.secretes/data/lnmp root@118.244.216.177::logs
3.
single colon ":" Separator. For example: Rsync-avz foo:src/bar/data 4) copies files from a remote rsync server to the local machine. This mode is started when the SRC path information contains the "::" delimiter. such as: Rsync-av root@172.16.78.192::www/databack 5) Copy files from the local machine to the remote rsync
1.rsync Introduction"Rsync is a data-mirroring backup tool for Linux systems. Use the Quick Incremental Backup tool Remote Sync can be synchronized remotely, support local replication, or synchronize with other SSH, Rsync hosts2.rsyncfeatures and features of1. can make
I. Introduction
Rsync is a common backup tool, which is currently maintained by rsync.samba.org.
Rsync uses the so-called "rsync
Algorithm ", Provides a very fast file transfer method to synchronize the files between the local and remote hosts. It is mainly used to transfer the changes of the two files, instead of tra
/web-back/, and open permissions for backup users[Email protected] ~]# mkdir/web-back/[Email protected] ~]# chown backup:backup/web-back/(6) Copy all files under the Web server/boot/directory to the/var/www/html/directory for push testing(7),rsync-avz--delete/var/www/html/[email protected]:/web-back/Command Push testSecond, establish a virtual user on the backup
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.