Rsync server setup this solution uses the client to actively synchronize servers. server configuration: 1. create the mkdir/etc/rsyncdtouch/etc/rsyncd directory. conftouch/etc/rsyncd. secretschmod600/etc/rsyncd. s...
Rsync server construction
This solution uses the client to
Backupmysqldb (object): Def __init__ (SE Lf,kwargs): Version = 1.0 Self.kwargs = Kwargs def deletedb (self): # Keep The data backup before T Wo Days reserve = list () Cctime = Time.time () for F in Os.listdir (self.kwargs[' Backup_path '): If F.find (' GZ ')! = -1:reserve.append (f) for x in reserve:f = '%s%s '% (Self.kwargs [' Backup_path '],x) Fctime = Os.stat (f). St_ctime if (cctime-fctime) > 172800:shutil.move (F, '/data0/reserve/') mes = ' Delete file%s is OK '%f logging (' MyS
Typically using the default port, the start command on the server side is:
/usr/bin/rsync--address=192.168.1.23--daemon
If you need to exchange additional port listening on the client, use the
/usr/bin/rsync--address=172.18.16.89--port=8081--daemon
Client command:
/USR/BIN/RSYNC-VZRC--progress--bwlimit=300/usr/loca
1. on the server side, set (or add) the file:/etc/rsyncd. conf. The content is as follows:
Uid = nobodyGid = nobodyUse chroot = NoMax connections = 10Strict modes = YesPID file =/var/run/rsyncd. PIDLock file =/var/run/rsync. LockLog File =/var/log/rsyncd. Log
# Yang is the module name.[Yang]
# Path is the path to be backed upPath =/home/Linux/PDFComment = Linux Home dataIgnore errorsRead Only = NoWrite only
Rsync server Construction
This solution uses the client to actively synchronize servers
Server Configuration:
1. Create a directory
Mkdir/etc/rsyncd
Touch/etc/rsyncd. conf
Touch/etc/rsyncd. secrets
Chmod 600/etc/rsyncd. secrets
2. Specify the directory to be backed up
3. modify the configuration file
Pid file =/var/run/rsyncd. pid
Log file =/var/log/rsyncd. log
R
Two Windows7 machinesserver:192.168.12.104client:192.168.12.103Purpose: To synchronize the contents of the E-disk directory FYFR on the server to the FYFR directory under the D disk on the client.(No user password authentication, direct anonymous connection synchronization)Configuration steps:Service-Side server:192.168.12.104Installing Cwrsyncserver_4.1.0_installerGo to the installation directory C:\Progra
Question: How do I avoid synchronizing a specified folder? --excludersync--exclude files and folders
Http://articles.slicehost.com/2007/10/10/rsync-exclude-files-and-folders
Very common situation: I want to sync//usr/boot/, but do not want to copy/proc/tmp these folders
If you want to avoid a path directly add--exclude
Like--exclude "Proc."
--exclude ' Sources '
Note:the directory path is relative to the folder and you are are backing up.
Note: This p
Rsync+inotifyEnterprise Web site synchronization methods have multiple, can be used to mount the shared hard disk, but can also be used Rsync+inotify-tool way.Rsync: Responsible for pushing data to the server.INotify: Responsible for monitoring code or file changes in the client, triggering the push.Environment Description:centos-6.5A Server-side (192.168.10.2)
have been accustomed to using rsync + SSH server file synchronization, but before the command parameters to find similar mkdir-p function, you can synchronize a specified file automatically on the target server to create a complete parent directory on demand. For example, some of the automatically generated directory files by month and year need to be synchronize
A new node has not been synchronized from the primary server to the configuration file prompt:Rsync: Failed toConnect tox.x.x.x:NoRoute toHost
Suspicion is a firewall problem, shut down their own firewall, found or not connected
Doubt it's selinux, turn it off or not.
Shut down the firewall of the main server and find that you can
The master server
Cwrsyncserver encountered this problem on the Windows 2003 server:
@ERROR: ChDir failedRsync Error:error starting Client-server Protocol (code 5) at MAIN.C (1495) [Receiver=3.0.2]
Solution One:
1 Create a new directory for example, enter the Start menu >cwrsync server>prep a Dir for Upload, select D:\folder1, determ
The difference between Linux server and Windows ServerWhat are the advantages of using Linux as a server versus Windows Server?First, the average failure time is less, and as long as it is configured and used properly, the average failure of Linux (which requires shutdown or
What is brought to you today is the upgrade of the Windows Server domain environment, where Windows Server 2003 is used to upgrade to Windows Server 2012.Let us introduce you to the specific process of
Windows Server learning: server connection and exit, windows Server
This article is an article I published in my early days to provide basic technical training for new programmers. It is very basic and simple. I will share it with you. Of course, the staff can ignore it dir
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/4C/50/wKiom1Q7SZ2Bt1jXAAH9Opf7WEo522.jpg "title=" 36020141013113747640.jpg "alt=" Wkiom1q7sz2bt1jxaah9opf7weo522.jpg "/>In the network topology as above, there are five computers, as described below1) DC: Domain controller with Windows Server Datacenter System installed, (IP) 10.0.0.1 (DG) 10.0.0.253 (DNS) 10.0.0.12) file
Microsoft wants the new operating system to bring a new unified experience, Windows as a "comprehensive platform", Windows 10 can be compatible with various types of devices, will run on the widest range of device types, Microsoft will provide "one" application platform to achieve the full interoperability of different devices. The launch, hosted by Microsoft's Joe Belfiore, tells us all about
PHP 5.4 has a built-in Web server that is handy for native development because you no longer have to install Web server software like Apache, you can launch PHP's Web server directly from the command line.
The startup method is simple, enter the directory where the project is located at the command line, and then use the-s parameter to start the service, you need
Scope of use: SharePoint Foundation 2010 | SharePoint Server
content of this article
Step 1: Select and pre-configure the operating system
Step 2: Install Prerequisites for SharePoint 2010
Step 3: Install SharePoint 2010
Step 4: Install Visual Studio 2010 and Developer Documentation
Step 5: Create a Hyper-V image from an installed system
When you create or customize a SharePoint solution, it is often best to develop such a solution on a local
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.