The general idea is:First export the SVN directory under Windows to a folder (so there is no extra. SVN directory), then package the directory as a *.rar file via WinRAR, and then sync the packaged file to the Linux server via the rsync command.
Introduce the basic environment first.
The code is as follows
Copy Code
#IP地址:Windows 192.168.1.138Linux 192.168.1.132
#windows下相关软件安装目录:
The code is as follows
Copy Code
SVN installati
.
Rsync 2. When cwrsync is used in windows, you can write the cwrsync directory to the system environment variable, so that you do not need to run the rsync command in the installation directory of cwrsync every time.
Rsync usage 3. When you need to connect to files in windows, the drive letter cannot be directly similar to c: \; d: \, and so on. Conversion is re
=/etc/rsyncd. conf
5. check whether Port 873 is available: netstat-naltp
--- Now The rsync server has been configured!
======================================
Rsync client configuration:
Create a file on the client to save the rsync server user password, vim/etc/rsyncko. pass123 # Password defined in the server password fileSave and modify the file permission: chmod 600/etc/rsyncko. pass
--- Now The rsync client has been configured!
======================================
Client synchronization s
Rsync is the next best software for synchronizing files on Linux, and it can be used under Windows, but the name is Cwrsync. This article mainly introduces the use of Windows as the server of Rsync, Linux for the use of the client. Cwrsync is also divided into a client-side service, Service side: Cwrsync_server_2.0.10_installer Client: Cwrsync_2.0.10_installer Window is served as a server, so download the
backup files: 192.168.10.159 (Windows Server 2003)Implementation featuresIncremental backup of the accounts directory and conf directory of the Turbomail mail server via the Rsync tool.Accounts directory: A directory for storing user-related informationConf Directory: User profile storage DirectoryNetwork topology structure1. Download the Rsync tool for Windows editionRsync version 2.4.6 (can get the latest version from http://rsync.samba.org/rsync/)Server side: Cwrsync_server_2.0.10_installer.
Rsync is a good file synchronization tool, we need a server and a client. can achieve the local
Files are synchronized to the server, or the server-side files can be synchronized locally.
1, http://rsync.samba.org/download Cwrsync client (cwrsync) and server-side (cwrsyncserver).
2, server-side (assuming IP address: 192.168.1.100) Installation: Install by default option.
After installation, the service
/rsync. passwd myuser@172.16.251.241: mydata/backup >/dev/null echo "finished" # crontab-e create periodic task statement #30 2 ***. rsync. bash performs a data synchronization at A.M. by executing a script.
(4) data synchronization on windows server 17.0254.84
Download green edition cwRsync https://www.itefix.no/i2/content/cwrsync-free-edition
1
# After downloading the file, create
.
Rsync 2. When cwrsync is used in windows, you can write the cwrsync directory to the system environment variable, so that you do not need to run the rsync command in the installation directory of cwrsync every time.
Rsync usage 3. When you need to connect to files in windows, the drive letter cannot be directly similar to c: \; d: \, and so on. Conversion is re
file, which can be used in the script without the need to enter the verification password interactively, note that the permission attribute of the password file must be set to only the current user who executes the command. In this example, it is a 98syn user. The backup content is stored in the/usr/local/apache/htdocs/pub/html/directory of the backup machine.In this way, the rsync synchronization service has been set up. Finally, we can use the crontab command executed on the client to impleme
echo-dgram: off echo-stream: off rsync: on swat: off tcpmux-server: off time-dgram: off time-stream: off ***** the rsync service has been installed, and my result list is I have enabled it. this is to control the random startup of the rsync service. If this item is off in your list, you can modify it as follows. vi/etc/xinetd. d/rsync modify disable = yes to disable = no start service xinetd restart so far, the configuration is basically complete, you can use the client to test: in windows, I u
configuration ends, and the client end is configured. Client:(1) install the client package: cwrsync_2.0.10_installer.zip(2) Open CMD and perform the following operations to test whether the server has started the service properly:Cd c: \ Program Files \ cwrsync \ binTelnet 192.168.0.201 22Telnet to 192.168.0.201 873If the test is successful, you can execute the synchronization plan:Rsync-vzrtopg -- Progress -- delete 192.168.0.201: rsync/cygdrive/D/
The company wants to create a group buying project and released a group buying website. I use the CentOS5.5 system, which is based on the LNMP configuration environment. Considering synchronizing data on the server, we thought of the Rsync service. Previously, Cwrsync was used in Windows. Configure the server in Linux for the first time...
The company wants to create a group buying project and released a group buying website. I use the CentOS 5.5 syst
to specify the password file, which can be used in the script without the need to enter the verification password interactively, note that the permission attribute of the password file must be set to only the current user who executes the command. In this example, it is a 98syn user. The backup content is stored in the/usr/local/apache/htdocs/pub/html/directory of the backup machine.In this way, the rsync synchronization service has been set up. Finally, we can use the crontab command executed
the file, the client also deletes the file to ensure true consistency.
98syn@x.x.x.168: 98 html indicates that the command is to back up the 98html module in server x. x. x.168, where 98syn indicates that 98syn is used to back up the module. -- Password-file =/etc/rsync98.scrt to specify the password file, which can be used in the script without the need to enter the verification password interactively, note that the permission attribute of the password file must be set to only the current user
. motd # display the welcome information, which can be disabled if you do not want to use it. remember to comment out this line. the device starts the service at random. chkconfig -- list has a ****** xinetd based services: chargen-dgram: off chargen-stream: off cvs: off daytime-dgram: off daytime-stream: off discard-dgram: off discard-stream: off echo-dgram: off echo-stream: off rsync: on swat: off tcpmux-server: off time-dgram: off time-stream: off ***** The rsync service has been installed, a
supports most Unix-like systems, which are well tested on Linux, Solaris, and BSD. In addition, it also has a corresponding version under the Windows platform, such as Cwrsync and Sync2nas tools. The basic features of rsync are as follows: 1. Can be mirrored to save the entire directory tree and file system; 2. It is easy to maintain the original file permissions, time, soft and hard links, etc. 3. No special permission is required to install; 4. Opt
Tutorial on Using | Cwrsync-rsync for Windows | How to back up Linux files with Rsync | Configuring Rsync précis-writers on AIX | Back up Dreamhost to Windows with Rsync (Cwrsync) | Rsync combined with OpenSSH for file synchronization
Email Related:
HTML Email boilerplate-email Template
How to send an e-mail for embedded images (Inline Attachment)
The correct way to send an
configuration file under WEB \ config, which stores the corresponding configuration information of the entire Forum. The switch of all functions must be recorded, which is very important, after the Administrator modifies these configuration files on the relevant page in the background, the information needs to be synchronized to other distributed nodes immediately.
This is indeed a challenge, but fortunately, the corresponding software can help us implement this basic function, namely
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.