摘要
随着电力系统备份数据量的增加 ,迫切需要开发高效、快速的文件同步程序来维护数据安全。通过Rsync算法可以找出单个文件中距离上次备份以来发生变化了的部分 ;基于代数系统理论的文件同步理论则可以让文件的多个副本之间保持一致 ,且一个副本产生的变化会被传播到其他副本中去。基于上述理论开发了一个面向省级电力市场的文件同步程序 ,通过使用操作系统中的API函数来实现对源文件夹的实时监控 ,通过将捕捉到的操作记录进行修整来提高同步效率 ,然后根据文件同步理论计算出的等效操作序列来实现两个文件夹间的快速同步。通过使用FTP控件还可以实现本地文件夹与远程FTP文件之间的同步。测试表明 ,该软件完全满足设计要求。
To guarantee the security of power system data, it is imperative to satisfy the need to develop a fast and efficient file synchronizer. The Rsync algorithm can find out the changed parts in a single file since the preceding backup, while the file synchronization theory, which is based on the algebraic system theory, can maintain the consistency of multiple copies, and transfer the changes in a copy to the other copies. Based on the above theory, a file synchronizer for the provincial electric power market is developed. It firstly realizes the real time monitoring of the source file folder by using the API function of the Windows operating system, and then increases the synchronizing efficiency by modifying the trapped records, finally realizes fast synchronization between two file folders using the equivalent operation sequence obtained with the file synchronization theory. By using FTP component, the synchronization between the local file folder and the remote FTP file is also realized. Tests show that this software completely satisfies the design requirements.
出处
《电力系统自动化》
EI
CSCD
北大核心
2003年第13期68-71,共4页
Automation of Electric Power Systems
关键词
计算机系统的安全与保密
文件同步
文件监控
更新探测
数据备份
security and secrecy of computer system
file synchronization
file monitoring
update detection
data backup