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
Windows as a file server, using the Windows service version of rsync: Cwrsyncserver Download Address: http://rsync.samba.org
The setup process is to set the account number and password for the system service, which you can default to.Note: This account is used to enable the Crsync Server service, you need to assign the account to the corresponding permissions to
First, the service side settings1. Modify server-side configuration# vi/etc/rsyncd.confModify:UID = Nobody # This option specifies the UID that the daemon should have when the module transmits the file. The default value is "nobody".GID = Nobody # This option specifies the GID that the daemon should have when the module transmits files. The default value is "nobody".Max connections = 4 # Maximum number of connections is 4Use chroot = no # no chrootLog
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
deceitful act method to solve the problem.
Does the backup server require access to \\dbserver\LogBackup? So we are in the same network with the backup server (intermediate server) to share a path, for the backup server, as long as the access to \\dbserver\LogBackup, no matter who is sharing it.
The problem with the
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)
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
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
Enable http: // 172.18.191.21/Reports when deploying SQL Server 2005 Report ServiecsAn error occurred while trying to connect to the Report Server. Check the connection information and whether the Report Server version is compatible. "ErrorHttp: // 172.18.191.21/ReportServer can be correctly displayed.
1: Check whether
Label:The need for the first few days is to have the SNF platform BS version of the Foundation program fully support the Oracle database. Look at this is a big project, because everyone knows that SQL and Oracle syntax has a lot of different, such as top, date acquisition, type, special keywords such as SQL Server will use the dbo., [] No, automatic growth, paging query and so on. So to be compatible at des
-type primary key, but since the sequence master key policy used in the previous code is bound to be a large amount of work for string types, it is decided to use the table policy to be compatible with various databases.5, the DAO layer of SQL processingBecause a custom scalar-valued function is called in SQL Server, You must precede the function name with the dbo prefix, but this is bound to lead to the in
This article mainly introduces a simple WebSocket server that is compatible with the old and new Socket protocols in Python, if you need it, you can refer to the WebSocket technology introduced in HTML5 that needs to be used in a recent project. I thought it would be easy to handle it, who knows that there are a lot of troubles after the development is really started? although we are a long-experienced team
SQL Server MDF up-compatible additional database (unable to open database ' xxxxx ' version 611. Please upgrade the database to the latest version. )Recently working with a sqlserver2005 version of MDF file, no log file is now requiredAttached to the sqlserver2012, after a search online, the whole process is served, for your referenceCreate a database FirstSet the database compatibility again (this step can
), the next eight bytes represent the Data Length.
With this judgment, we can know the number of bytes that indicate the length of the data to end at. For example, 60 is used, and the value is between 0 and ~ Between 125 bytes, so the second byte itself represents the length of the original data (60 bytes), so from the third byte, we can capture 4 bytes, this string of bytes is called "masks" (mask ?), The data after the mask is the actual data... Brother. This is because the actual data is obta
; simplyput, ringojs is a brilliant wrapper around undMozilla rhino javascriptinterpreter. node. JS is a ringojs alternative.
Technically, erbix is compatible with commonjs server JavaScript host platform. We don't have a limited number of vendors, and we hope to make the minimum effort to port programs from erbix. Users can export their programs to the Javascript platform on a private ringojs host or anot
know the bytes representing the length of the data at the end of the number, such as we take example 60, this value is between 0~125, so the second byte itself represents the length of the original data (60 bytes), so we can grab 4 bytes from the third byte, This string of bytes is called "Masks" (mask?), the data after the mask, is the actual ... 's brother. Said to be a brother, because this data is actually based on the mask to do a bitwise operation, the method of obtaining the original dat
(data_length >> 8))
Back_str.append (Chr (Data_length 0xFF))
Back_str = "". Join (BACK_STR) + raw_str
The resulting back_str can be sent to Chrome or Firefox, which uses the new protocol.
At this point, this simple WebSocket server is complete, can be compatible with the old version of the Protocol and the new version of the socket connection, and the different versions of the data trans
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.