1. Field of the Invention
The present invention relates to a real-time backup method and in particular to a real-time backup method for single storage medium.
2. Description of the Prior Art
A conventional real-time backup method for single storage medium, referring to
The objective of the present invention to provide a real-time backup method for single storage medium which partitions a single storage medium into multiple logic units, and assigns each logic unit as a backup logic unit or a normal storage logic unit, and partitions the backup logic unit into two or more unit blocks.
Data with real-time backup demand are simultaneously written into two strip blocks belonging respectively to two unit blocks in the backup logic unit to achieve real-time backup function.
When the usage rate of the two unit blocks is full, another two unit blocks are sequentially adopted for backup. In similar way, when the usage rate of the backup logic unit is full, another logic unit is sequentially adopted for storing data, and therefore the usage rate of the storage medium is enhanced.
Other advantages of the present invention will become apparent from the following description taken in conjunction with the accompanying drawings, which are set forth by way of illustration and example, to certainly embody the present invention.
The foregoing aspects and many of the accompanying advantages of this invention will become more readily appreciated as the same becomes better understood by reference to the following detailed description, when taken in conjunction with the accompanying drawings, wherein:
A real-time backup method for single storage medium according to the present invention is disclosed in the
The data with backup demand are simultaneously stored in strip blocks 2111a, 2112a and 2111b, 2112b of two unit blocks 211a, 211b in the backup logic unit 21, respectively, and the data without backup demand are stored in the strip block 221 in the normal storage logic unit 22. The reading process includes reading an address from the backup logic unit 21, selecting a unit block according to the address and reading data from the stripe block of the unit block. When the data stored in the strip blocks 2111a, 2112a are corrupted, the backup data in strip blocks 2111b, 2112b are available.
As the first embodiment shows, the data with backup demand are simultaneously stored in strip blocks 2111a, 2111b of two unit blocks 211a, 211b in the backup logic unit 21, and the data without backup demand are written into the strip block 221 in the normal storage logic unit 22.
What differs from the first embodiment is when the usage of unit blocks 211a, 211b is full, the unit blocks 212a, 212b may be adopted for real-time backup, and unit block 213a, 213b may be sequentially adopted accordingly. The reading process includes reading an address from the backup logic unit 21, selecting a unit block according to the address and reading data from the stripe block of the unit block.
Those that are designated as backup logic units are further partitioned into two or more unit blocks for real-time backup, as shown in the first or second embodiment, and, in similar way, those that are designated as the normal storage logic units are sequentially adopted for normal data storage when the data storage is full.
While the invention is susceptible to various modifications and alternative forms, a specific example thereof has been shown in the drawings and is herein described in detail. It should be understood, however, that the invention is not to be limited to the particular form disclosed, but to the contrary, the invention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the appended claims.