File restoration method and device
暂无分享,去创建一个
The invention provides a file restoration method and system. The method comprises the following steps: limiting the locking of a restoration process, when the restoration process tries to lock a file, if the lock has a user, directly considering that the locking fails without queuing up to seize the lock, and waiting to try during the next restoration; and after the locking of the restoration process succeeds, setting the attribute of the lock to be seizable. According to the file restoration method and device, the locks possessed by normal businesses are prevented from being seized by restoration processes, the condition of waiting to restore to release the locks of the normal businesses is avoided, the problem that the execution of faulted file restoration processes causes the process response time of the normal businesses to be prolonged is solved, and the influences, caused by data restoration, on the normal businesses are reduced.