File synchronization method and apparatus

A technology for synchronizing files and files, applied in electrical components, generation of response errors, error detection of redundant data in operations, etc. It can solve the problem of inconsistent data between server and client, time-consuming scanning of files, and inability to recover data. And other issues

Inactive Publication Date: 2017-04-19
TVMINING BEIJING MEDIA TECH
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the number of files reaches millions or even tens of millions, scanning all files will be very time-consuming
And it's often a very small part of it that's changing, which is a very inefficient way to
Secondly, rsync cannot monitor and synchronize data in real time. Although it can trigger

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • File synchronization method and apparatus
  • File synchronization method and apparatus
  • File synchronization method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0034] The preferred embodiments of the present invention will be described below with reference to the accompanying drawings. It should be understood that the preferred embodiments described here are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0035] Before introducing the present invention, first introduce inotify. Inotify is a powerful, fine-grained, asynchronous file system event monitoring mechanism. The linux kernel has added inotify support from 2.6.13. Through inotify, you can monitor various details such as addition, deletion, modification, and movement in the file system. Event, using this kernel interface, third-party software can monitor various changes of files under the file system, and inotify-tools is such a third-party software.

[0036] Such as figure 1 Shown is a flowchart of a method for synchronizing files in an embodiment of the present invention. The method may include the following steps S11-S...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a file synchronization method and apparatus to achieve file synchronization in real time among servers. The method comprises steps of installing a data mirror image backup tool (rsync) on a content server, building a first authenticated file and configuring a configuration file having relative parameters of the rsync, installing the rsync and a monitoring tool (inotify) on a publishing server, building a second authenticated file and a file synchronization script, operating the file synchronization script on the publishing server to monitor a file-contained designated catalogue on the publishing server via the inotify, and calling the rsync to synchronize files having changes in the designated catalogue to the content server when changes of files in the designated catalogue are monitored.

Description

technical field [0001] The invention relates to the field of computer application technology, in particular to a method and device for synchronizing files. Background technique [0002] rsync (remote synchronize) is a data mirroring backup tool under unix-like systems. Compared with traditional backup methods, rsync has the advantages of high security, fast backup, and support for incremental backup. Rsync can solve the problem of low real-time requirements. Data backup requirements, such as regular backup of file server data to remote servers, regular data mirroring of local disks, etc. [0003] As the scale of application systems continues to expand, more requirements are placed on data security and reliability, and rsync has gradually exposed many shortcomings in high-end business systems. First of all, when rsync synchronizes data, all files need to be scanned and compared for differential transmission. If the number of files reaches millions or tens of millions, it wi...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F11/14H04L29/08
CPCG06F11/1461G06F11/1469H04L67/1095H04L67/303
Inventor 张新亮
Owner TVMINING BEIJING MEDIA TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products