CN102520956A - Novel data storage method and system - Google Patents

Novel data storage method and system Download PDF

Info

Publication number
CN102520956A
CN102520956A CN2011104246223A CN201110424622A CN102520956A CN 102520956 A CN102520956 A CN 102520956A CN 2011104246223 A CN2011104246223 A CN 2011104246223A CN 201110424622 A CN201110424622 A CN 201110424622A CN 102520956 A CN102520956 A CN 102520956A
Authority
CN
China
Prior art keywords
data
storage
local
network
switching program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011104246223A
Other languages
Chinese (zh)
Inventor
黄明高
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
XIAMEN YOUJIA NETWORK CO Ltd
Original Assignee
XIAMEN YOUJIA NETWORK CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by XIAMEN YOUJIA NETWORK CO Ltd filed Critical XIAMEN YOUJIA NETWORK CO Ltd
Priority to CN2011104246223A priority Critical patent/CN102520956A/en
Publication of CN102520956A publication Critical patent/CN102520956A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a novel data storage method and a system. The novel data storage method includes setting a storage switching program in advance, and acquiring the storage switching program for switching operation between an execution data network storage mode and a data local storage mode; and storing data on a network or storing the data locally according to the storage switching program, and acquiring corresponding network storage data and local storage data. By the aid of the novel data storage method, requirements that data security is guaranteed, namely the data cannot be lost, and a data storage space can be expanded are met.

Description

Novel data storage method and system
Technical Field
The invention relates to the field of data storage, in particular to a novel data storage method and a novel data storage system.
Background
At present, data archiving modes are two modes, namely data local storage and data cloud storage, wherein the data local storage is used as a main data storage mode.
The data local storage is realized by applying for a certain hard disk space of a user and then storing the data in the hard disk space.
The advantages of local storage of data are: the network is not required to be requested to store the data, and the data is stored quickly and simply.
The disadvantages of local storage of data are: data storage space is limited; is not easy to expand and maintain; data cannot be shared and security is poor; data is easily corrupted.
The data cloud storage has the advantages that: the data storage space can be expanded and maintained; data can be shared and the safety is high; the data is not easily corrupted.
The data cloud storage mode has the following defects: if network interruption occurs in the process of storing data in the network, the data cannot be stored in the server, and data loss occurs.
In summary, it is difficult for the existing storage method to simultaneously satisfy the requirements of ensuring data security, i.e. not losing data, and expanding the data storage space.
Thus, one of the technical problems that needs to be urgently solved by those skilled in the art is: how to find a novel data storage method can meet the requirements of ensuring data safety, namely not losing data and expanding data storage space.
Disclosure of Invention
The invention aims to provide a novel data storage method which can simultaneously meet the requirements of ensuring data safety, namely not losing data and expanding data storage space.
In order to solve the above problems, the present invention discloses a novel data storage method, which comprises:
presetting a storage switching program, and acquiring the storage switching program for switching between a data network storage mode and a data local storage mode;
and performing network storage or local storage on the data according to the storage switching program to obtain corresponding network storage data and local storage data.
Preferably, the step of performing network storage or local storage on the data according to the storage switching program to obtain corresponding network storage data and local storage data includes the following steps:
performing network storage on the data according to the storage switching program to obtain corresponding network storage data;
or, according to the storage switching program, the data is locally stored, and corresponding locally stored data is obtained.
Preferably, under the condition that the network is normal, network storage is performed on the data according to the storage switching program, and corresponding network storage data is obtained;
and under the condition that the network is abnormal, locally storing the data according to the storage switching program to obtain corresponding locally stored data.
Preferably, the step of locally storing the data according to the storage switching program to obtain corresponding locally stored data when the network is abnormal includes:
under the condition that the network is abnormal, switching is carried out according to the storage switching program, the local storage program is switched, a request command for carrying out local storage is executed, and local storage is started;
executing local storage on the data to obtain initial data stored in a local hard disk for the first time;
according to different time periods, performing local storage on the data to obtain corresponding updated data stored in a local hard disk in different time periods;
selecting the last updated data from the obtained corresponding updated data stored in the local hard disk relative to different time periods as data to be uploaded to the server side;
uploading the selected data to be uploaded to the server side;
and deleting the obtained corresponding updated data stored in the local hard disk relative to different time periods from the local hard disk to obtain corresponding local stored data.
The invention also discloses a novel data storage system, which comprises:
the system comprises a preset storage switching program system, a switching program switching system and a switching program switching system, wherein the preset storage switching program system is used for presetting a storage switching program and acquiring the storage switching program for switching operation in two modes of executing data network storage and data local storage;
the storage switching program system is used for carrying out network storage or local storage on the data according to the storage switching program to obtain corresponding network storage data and local storage data;
the data storage program system is used for setting a data storage program and obtaining the data storage program;
and the database system is used for providing the stored data.
Preferably, the database system includes:
the network database system is used for providing data for data network storage;
and the local database system is used for providing data for local storage of the data.
Compared with the prior art, the invention has the following advantages:
1. and (4) disengaging from the network state.
2. The storage space can be freely expanded.
3. The speed is high, and the storage is simple.
4. The data security is strong, and is difficult to be destroyed and lost.
5. And the data maintenance and migration are convenient.
6. The two storage modes are automatically switched according to conditions.
7. And (4) sharing data.
8. The invention solves the problems of local data storage, limited storage space, difficult expansion, difficult maintenance, incapability of sharing data, poor safety and easy damage of data.
9. The invention solves the defect that the data can not be stored in the server due to network interruption when the network stores the data.
10. The invention realizes seamless switching between local archiving and cloud archiving, thereby realizing the whole data storage process with fast data storage and simple data storage.
In summary, the present invention provides a novel data storage method and system, which can simultaneously satisfy the requirements of ensuring data security, i.e. not losing data, and expanding data storage space.
Drawings
FIG. 1 is a flow chart of the steps of embodiment 1 of a novel data storage method of the present invention;
FIG. 2 is a flow chart of the steps of embodiment 2 of a novel data storage method of the present invention;
FIG. 3 is a schematic flow chart of data storage in the present invention;
FIG. 4 is a schematic structural diagram of an embodiment of a novel data storage system of the present invention;
FIG. 5 is an overall framework diagram of data storage in the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
One of the core ideas of the present invention is to provide a novel data storage method, which comprises: presetting a storage switching program, and acquiring the storage switching program for switching between a data network storage mode and a data local storage mode; according to the storage switching program, network storage or local storage is carried out on the data, and corresponding network storage data and local storage data are obtained; the method can simultaneously meet the requirements of ensuring data safety, namely not losing data and expanding the data storage space.
Referring to fig. 1, a flowchart illustrating steps of a novel data storage method embodiment 1 of the present invention is shown, which may specifically include:
step 101, presetting a storage switching program, and obtaining the storage switching program for performing switching operation in two modes of data network storage and data local storage.
And 102, performing network storage or local storage on the data according to the storage switching program to obtain corresponding network storage data and local storage data.
In order to make those skilled in the art better understand the present invention, in a preferred embodiment of the present invention, the step 102 may specifically include:
and a substep A1, performing network storage on the data according to the storage switching program to obtain corresponding network storage data.
Under the condition that the network is normal, network storage is carried out on the data according to the storage switching program, and corresponding network storage data are obtained.
In the case of a normal network, network storage is preferred. Therefore, the method and the device have the advantages of ensuring strong data security, realizing data sharing, easily managing and expanding data and the like.
And a substep A2, locally storing the data according to the storage switching program, and obtaining corresponding locally stored data.
Wherein,
and under the condition that the network is abnormal, locally storing the data according to the storage switching program to obtain corresponding locally stored data.
In case of network anomaly, local storage is selected. Therefore, the storage can be rapidly realized, and the data loss is prevented. When the network returns to normal, the latest data is stored in the network.
The step of, when the network is abnormal, locally storing the data according to the storage switching program to obtain corresponding locally stored data may specifically include:
and a substep B1, when the network is abnormal, switching to the local storage program according to the storage switching program, executing a request command for local storage, and starting local storage.
And a sub-step B2 of executing local storage on the data and obtaining initial data stored to the local hard disk for the first time.
Sub-step B3, according to different time periods, performs local storage on the data, and obtains corresponding updated data stored to the local hard disk for different time periods.
And a sub-step B4 of selecting the last updated data from the obtained corresponding updated data stored in the local hard disk relative to different time periods as the data to be uploaded to the server side.
And a sub-step B5 of uploading the selected data ready to be uploaded to the server side.
Sub-step B6, deleting the obtained corresponding updated data stored to the local hard disk for different time periods from the local hard disk, and obtaining corresponding local stored data.
And deleting the obtained corresponding updated data stored in the local hard disk relative to different time periods from the local hard disk, and ensuring that the local has enough storage space for storing the data in the local when the network is abnormal next time.
Referring to fig. 2, a flow chart of the steps of embodiment 2 of the novel data storage method of the present invention is shown. The details are as follows:
step 201, inputting data to be stored.
Step 202, judging whether the current network is normal, and executing corresponding operation. If the current network is normal, jumping to step 203, executing network storage and judging whether the storage is successful. And if the current network is abnormal, jumping to step 204, executing local storage and judging whether the storage is successful or not.
Step 203, network storage is carried out on the data and whether the storage is successful is judged.
If the judgment result is that the data is successfully stored in the network, the data is successfully stored in the network server;
and if the judgment result is that the process of network storage of the data is failed, executing the corresponding operation of the step 204.
And step 204, locally storing the data and judging whether the data is successfully stored.
If the judgment result is that the data is successfully stored locally, the data is stored in the local hard disk and then the corresponding operation step of the step 205 is executed;
if the determination result is that the process of storing the data locally is failed, the corresponding operation step of step 206 is executed.
Step 205, determining whether the network is recovered to normal and whether the local hard disk has the required data, obtaining a determination result, and executing corresponding operations according to the determination result.
And if the judgment result is that the network is recovered to be normal and the local hard disk has the required data, submitting the required data in the local hard disk to a server side of the network.
And if the judgment result is that the network is recovered to be normal and the local hard disk does not have the required data, performing no processing on the local data and temporarily storing the data in the local hard disk.
And if the judgment result is that the network is not recovered to be normal, even if the local hard disk has the required data, the data required by the local user cannot be uploaded to a server side of the network for sharing by the user.
Step 206, correcting the generated error data to obtain correct data.
Generally, the stored program in the invention is no longer limited by the network state, and the program can be normally used and the result can be saved. Moreover, when the network fails, the data problem does not need to be worried about. The latest result can be stored in the server after the network is recovered to normal next time, so that seamless switching between local archiving and cloud archiving is achieved.
Referring to fig. 3, a schematic flow chart of data storage in the present invention is shown.
From fig. 3, the overall process of data storage using the present invention can be seen.
Referring to fig. 4, a schematic structural diagram of an embodiment of a novel data storage system is shown, which may specifically include:
the preset storage switching program system 401 is configured to preset a storage switching program, and obtain a storage switching program for performing a switching operation between a data network storage mode and a data local storage mode.
The storage switching program system 402 is configured to perform network storage or local storage on the data according to the storage switching program, and obtain corresponding network storage data and local storage data.
And a data storage program system 403 for setting a program for data storage and obtaining the program for data storage.
Database system 404 for providing data for storage.
The database system may specifically include:
a network database system 4041 for providing data for data network storage.
A local database system 4042 for providing data for local storage of data.
Referring to FIG. 5, there is shown an overall framework of data storage in the present invention.
As can be seen from fig. 5: the novel data storage system comprises a user, a data storage program, network data and local data.
The user can select the corresponding database by using a data storage program: network data or local data.
In summary, the present invention provides a novel data storage method and system, which can simultaneously satisfy the requirements of ensuring data security, i.e. not losing data, and expanding data storage space.
The above detailed description is provided for a novel data storage method and system provided by the present invention, and the principle and the implementation of the present invention are explained by applying specific examples, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (6)

1. A novel data storage method, comprising:
presetting a storage switching program, and acquiring the storage switching program for switching between a data network storage mode and a data local storage mode;
and performing network storage or local storage on the data according to the storage switching program to obtain corresponding network storage data and local storage data.
2. The method according to claim 1, wherein the step of performing network storage or local storage on the data according to the storage switching program to obtain corresponding network storage data and local storage data comprises the steps of:
performing network storage on the data according to the storage switching program to obtain corresponding network storage data;
or, according to the storage switching program, the data is locally stored, and corresponding locally stored data is obtained.
3. The method of claim 1, wherein:
under the condition that the network is normal, performing network storage on the data according to a storage switching program to obtain corresponding network storage data;
and under the condition that the network is abnormal, locally storing the data according to the storage switching program to obtain corresponding locally stored data.
4. The method according to claim 3, wherein the step of locally storing the data according to the storage switching program to obtain the corresponding locally stored data when the network is abnormal includes:
under the condition that the network is abnormal, switching is carried out according to the storage switching program, the local storage program is switched, a request command for carrying out local storage is executed, and local storage is started;
executing local storage on the data to obtain initial data stored in a local hard disk for the first time;
according to different time periods, performing local storage on the data to obtain corresponding updated data stored in a local hard disk in different time periods;
selecting the last updated data from the obtained corresponding updated data stored in the local hard disk relative to different time periods as data to be uploaded to the server side;
uploading the selected data to be uploaded to the server side;
and deleting the obtained corresponding updated data stored in the local hard disk relative to different time periods from the local hard disk to obtain corresponding local stored data.
5. A novel data storage system, comprising:
the system comprises a preset storage switching program system, a switching program switching system and a switching program switching system, wherein the preset storage switching program system is used for presetting a storage switching program and acquiring the storage switching program for switching operation in two modes of executing data network storage and data local storage;
the storage switching program system is used for carrying out network storage or local storage on the data according to the storage switching program to obtain corresponding network storage data and local storage data;
the data storage program system is used for setting a data storage program and obtaining the data storage program;
and the database system is used for providing the stored data.
6. The method of claim 5, wherein the database system comprises:
the network database system is used for providing data for data network storage;
and the local database system is used for providing data for local storage of the data.
CN2011104246223A 2011-12-19 2011-12-19 Novel data storage method and system Pending CN102520956A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011104246223A CN102520956A (en) 2011-12-19 2011-12-19 Novel data storage method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011104246223A CN102520956A (en) 2011-12-19 2011-12-19 Novel data storage method and system

Publications (1)

Publication Number Publication Date
CN102520956A true CN102520956A (en) 2012-06-27

Family

ID=46291898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011104246223A Pending CN102520956A (en) 2011-12-19 2011-12-19 Novel data storage method and system

Country Status (1)

Country Link
CN (1) CN102520956A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102946426A (en) * 2012-11-07 2013-02-27 浪潮电子信息产业股份有限公司 Cloud storage method of industrial computer data
CN103929455A (en) * 2013-01-15 2014-07-16 北京东方通科技股份有限公司 Asynchronous file transmission system and method comprising network storage equipment
CN106899675A (en) * 2017-02-28 2017-06-27 福建新和兴信息技术有限公司 A kind of file memory method and system based on Application Type
CN112788265A (en) * 2019-11-11 2021-05-11 浙江宇视科技有限公司 Video data storage method and device, image acquisition equipment and readable storage medium
WO2021109640A1 (en) * 2019-12-06 2021-06-10 华为技术有限公司 Registration method and apparatus

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101437134A (en) * 2008-11-29 2009-05-20 成都市华为赛门铁克科技有限公司 Data storage method and system
CN101583930A (en) * 2006-12-14 2009-11-18 微软公司 Nonvolatile disk cache for data security

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101583930A (en) * 2006-12-14 2009-11-18 微软公司 Nonvolatile disk cache for data security
CN101437134A (en) * 2008-11-29 2009-05-20 成都市华为赛门铁克科技有限公司 Data storage method and system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102946426A (en) * 2012-11-07 2013-02-27 浪潮电子信息产业股份有限公司 Cloud storage method of industrial computer data
CN103929455A (en) * 2013-01-15 2014-07-16 北京东方通科技股份有限公司 Asynchronous file transmission system and method comprising network storage equipment
CN106899675A (en) * 2017-02-28 2017-06-27 福建新和兴信息技术有限公司 A kind of file memory method and system based on Application Type
CN112788265A (en) * 2019-11-11 2021-05-11 浙江宇视科技有限公司 Video data storage method and device, image acquisition equipment and readable storage medium
CN112788265B (en) * 2019-11-11 2024-02-02 浙江宇视科技有限公司 Video data storage method and device, image acquisition equipment and readable storage medium
WO2021109640A1 (en) * 2019-12-06 2021-06-10 华为技术有限公司 Registration method and apparatus

Similar Documents

Publication Publication Date Title
CN102520956A (en) Novel data storage method and system
US9424145B2 (en) Ensuring the same completion status for transactions after recovery in a synchronous replication environment
CN102521071B (en) Private cloud-based virtual machine maintaining method
US20150379107A1 (en) Automatic mode switching in a synchronous replication environment
US9251230B2 (en) Exchanging locations of an out of synchronization indicator and a change recording indicator via pointers
EP2755136A1 (en) Remote backup system and remote backup method thereof
JP2015523768A5 (en)
CN105159795A (en) Data synchronization method, apparatus and system
CN106469069B (en) Version upgrading method and system
WO2016045439A1 (en) Vnfm disaster-tolerant protection method and device, nfvo and storage medium
EP3147797A1 (en) Data management method, node and system for database cluster
CN103473142A (en) Virtual machine transferring method and device under cloud computing operating system
CN102243594A (en) Method for safely and remotely upgrading embedded Linux system software
CN105306605A (en) Double host server system
US20170132085A1 (en) Data Replication Method, Apparatus, and System
CN115562911B (en) Virtual machine data backup method, device, system, electronic equipment and storage medium
CN103064759B (en) The method of data restore and device
JP2012155686A (en) Information processing apparatus, control method, and program
US10466761B2 (en) Power system monitoring and control system
JP2011054145A5 (en)
CN105373549A (en) Data migration method and device and data node server
US9880855B2 (en) Start-up control program, device, and method
CN115509812A (en) Data backup method and server based on Keepalive dual-computer hot standby
CN106354830B (en) Method and device for data synchronization between database cluster nodes
CN113300913B (en) Equipment testing method and device, testing equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120627