CN113297012B - Backup method based on sector data - Google Patents
Backup method based on sector data Download PDFInfo
- Publication number
- CN113297012B CN113297012B CN202110850834.1A CN202110850834A CN113297012B CN 113297012 B CN113297012 B CN 113297012B CN 202110850834 A CN202110850834 A CN 202110850834A CN 113297012 B CN113297012 B CN 113297012B
- Authority
- CN
- China
- Prior art keywords
- backup
- backed
- files
- period
- time interval
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention relates to a backup method based on sector data, which comprises the following steps: acquiring a plurality of backup time intervals, acquiring an average time interval as a backup period, calculating the deviation degree of each backup time interval, presetting standard deviation degree, comparing the deviation degree of each backup time interval with the standard deviation degree, counting the number of the backup time intervals smaller than the standard deviation degree, and taking the average time interval as the backup period if the number exceeds a half; setting a period to be counted, leading the backup files with a large number of backup times in the period to be counted, acquiring the number of the leading files, when backing up in the later backup period, backing up the files with the corresponding number in the backup log list according to the log content, detecting whether the next file needs to be backed up, and if not, finishing the backup. The invention saves the computing resources needed during backup and improves the backup efficiency.
Description
Technical Field
The invention relates to the field of data backup, in particular to a backup method based on sector data.
Background
With the popularization of computers and the development of information technology, particularly the rapid development of computer networks, the importance of information security is increasingly obvious, as long as data transmission, data storage and data exchange occur, the problem of data security exists, and data backup is a data recovery means when the data security is lost. When data in any host needs to be backed up, if the host uses a Linux system, the rsync is used as a data mirror image backup tool in the Linux system, and the data of the host can be backed up. The rsync is an abbreviation of Remote Sync, and the tool can not only remotely synchronize and support local copying, but also synchronize with other SSHs and rsync hosts, and has the characteristics of retaining symbolic connection, hard links, file ownership, authority, equipment and time, rapidly updating backup files and the like.
However, when data synchronization backup is performed by using the rsync, comparison can be performed only after all files are scanned, generated file differences are determined, differential transmission is performed on the files with the generated differences, and if the number of the files reaches the million or even ten million, a large amount of computing resources are occupied, and even normal use of other processes is affected.
Disclosure of Invention
Therefore, the invention provides a sector data-based backup method, which solves the problem that a large amount of computing resources are occupied in file backup and improves the efficiency of file backup.
In order to achieve the above object, the present invention provides a sector data based backup method, including:
obtaining N backup time intervals Ti, obtaining an average time interval Ta according to the backup time intervals, calculating the deviation degree of each backup time interval, wherein the deviation degree is | Ti-Ta |/Ta, i =1, 2, …, N, presetting standard deviation degrees, comparing the deviation degree of each backup time interval with the standard deviation degrees to obtain N comparison results, and if the deviation degree of the backup time interval is smaller than the comparison result number of the standard deviation degrees and is greater than N/2 in the N comparison results, taking the average time interval Ta as a backup period.
Determining a priority detection number Sf, wherein the determination method of the priority detection number comprises the following steps:
setting a period to be counted, wherein the period to be counted comprises M backup periods, the total amount Sj, j =1, 2, …, M of files to be backed up is obtained, files backed up in the backup periods are preposed, the mean value Sb of the total amount of the files to be backed up in the period to be counted is obtained, the preferential detection number is Sf = Sb x (1 + k), and k is a standard coefficient.
And when the backup is carried out in the next backup period after the period to be counted, determining the files to be backed up to be detected according to the number of the priority detection numbers Sf and the arrangement sequence of the files to be backed up.
Further, the sequence of the to-be-backed-up files to be detected is Sf +1 th files, when the to-be-backed-up files to be detected are detected, if the to-be-backed-up files need to be backed up, whether the Sf +2 th files need to be backed up is continuously detected, if the Sf +2 th files still need to be backed up, whether the Sf +3 th files need to be backed up is continuously detected, the process is circulated until the detected files do not need to be backed up, and the backup period is ended;
if the backup is not needed, the backup period is finished.
Further, after N comparison results are obtained, if the number of the comparison results of which the deviation degrees of the backup time intervals are smaller than the standard deviation degree is less than or equal to N/2 in the N comparison results, counting N backup time intervals again; if the deviation degree of the backup time intervals in the N comparison results is still smaller than the number of the comparison results of the standard deviation degree and is less than or equal to N/2, then the N backup time intervals are obtained again; the process is repeated until the number of comparison results with the deviation degree of the backup time interval smaller than the standard deviation degree in the N comparison results is more than N/2, and the backup period is ended.
Further, the number N of backup time intervals ranges from 5 to 9, and N is an odd number.
Further, the value range of the standard deviation is 20% -40%.
Further, the value range of the standard coefficient k is 0.2-0.4.
Further, the server mounts a backup disk to the host to be backed up through the ISCSI, the backup disk is used to backup files, the host to be backed up is used to store backed-up files and perform full backup on the source directory for the first time, the source directory is used to indicate storage addresses of all files in the initial state, and the full backup indicates that all contents to be backed up are backed up for the first time.
Further, a monitoring program is started after the full backup, the monitoring program is used for reading all file operations in a log during the backup, the log is used for recording the content of the file operations in each modification, and the file operations comprise the addition, modification and deletion of the file contents and the addition and deletion of files.
Furthermore, except for the first adoption of the full backup, incremental backup is adopted later, namely, during backup, only files with modification records are compared by reading logs recorded by the monitoring program, so that the increment between new and old files is obtained, and the increment is backed up;
after the host to be backed up receives the instruction of finishing the backup, an uninstalling program is started, wherein the uninstalling program comprises uninstalling the backup disk from the host to be backed up.
Compared with the prior art, the method has the advantages that the backup period is determined through the historical backup time interval, the number of the backup files in the plurality of backup periods is counted, and the priority detection number is determined, so that the unmodified files do not need to be detected, further the calculation resources occupied by the backup process are saved, and the backup efficiency is improved.
Particularly, by collecting effective backup time interval data, the collected data has small error, the obtained average backup time has reasonable value, the backup method is more scientific and effective, the calculation resources occupied by the backup process are saved, and the backup efficiency is improved.
Particularly, by setting the priority detection number, not only files needing to be backed up are detected as much as possible, but also files needing no backup are not detected as little as possible, so that the computing resources occupied by the backup process are saved, and the backup efficiency is improved.
Particularly, by setting the value range of N in a reasonable interval, the statistical error of the data is ensured to be small, the time for generating the backup method is saved, the efficiency of the backup method is improved, the calculation resource occupied by the backup process is saved, and the backup efficiency is improved.
Particularly, by setting the value range of the standard deviation degree in a reasonable interval, the statistical error of the data is ensured to be small, the time for generating the backup method is saved, the efficiency of the backup method is improved, the calculation resource occupied in the backup process is saved, and the backup efficiency is improved.
Particularly, the value range of the standard coefficient k is set in a reasonable interval, so that the priority detection number Sf is in a reasonable range, files needing to be backed up are detected as much as possible, files needing no backup are not detected as little as possible, the calculation resources occupied by the backup process are saved, and the efficiency of the backup process is improved.
In particular, a channel is established for the backup of the file by providing an ISCSI carrying shared disk, monitoring programs and recording logs, so that the fast backup of the file is realized, the time required by the backup is greatly saved, and the computing resources required by the backup are further saved.
Drawings
Fig. 1 is a flowchart of a method for sector-based data backup according to the present embodiment;
fig. 2 is a flowchart of another method for sector-based data backup according to this embodiment.
Detailed Description
In order that the objects and advantages of the invention will be more clearly understood, the invention is further described below with reference to examples; it should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only for explaining the technical principle of the present invention, and do not limit the scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a method for sector-based data backup, wherein the method for sector-based data backup according to an embodiment of the present invention includes:
obtaining N backup time intervals Ti and obtaining an average time interval Ta;
calculating the deviation degree of each Ti, presetting a standard deviation degree, comparing the deviation degree of each backup time interval with the standard deviation degree, and counting the number of the deviation degrees of the backup time intervals which are less than the standard deviation degree;
if the number is less than N/2, N backup time intervals are obtained again, and if the number exceeds N/2, Ta is used as a backup period;
setting a period to be counted, leading the backup files with a large number of backup times in the period to be counted, acquiring the total amount of the leading files, and setting the total amount of the files as a priority detection number Sf;
when the backup is carried out in the later backup period, after the first Sf files in the backup log list are backed up according to the log content, whether the Sf +1 th file needs to be backed up is detected, and if the Sf +1 th file does not need to be backed up, the backup is finished;
if so, continuously detecting whether the next file needs to be backed up, and repeating the process until the file does not need to be backed up.
Specifically, a backup period is obtained, where the backup period is an average time interval Ta, and the average time interval Ta is obtained by:
obtaining N backup time intervals Ti, and obtaining an average time interval Ta according to the backup time intervals;
calculating the deviation degree of each backup time interval, wherein the deviation degree is | Ti-Ta |/Ta, i =1, 2, …, N;
presetting standard deviation, and comparing the deviation of each backup time interval with the standard deviation to obtain N comparison results;
if the deviation degree of the backup time interval is smaller than the number of comparison results with standard deviation degree > N/2 in the N comparison results, taking the average time interval Ta as a backup period;
determining a priority detection number Sf, wherein the determination method of the priority detection number comprises the following steps:
setting a period to be counted, wherein the period to be counted comprises M backup periods, acquiring the total amount Sj, j =1, 2, …, M of files to be backed up, and leading the files backed up in the backup periods;
obtaining the mean value Sb of the total amount of the files to be backed up in a period to be counted;
setting a priority detection number Sf, wherein the priority detection number is Sf = Sb x (1 + k), and k is a standard coefficient;
and when the backup is carried out in the next backup period after the period to be counted, determining the files to be backed up to be detected according to the number of the priority detection numbers Sf and the arrangement sequence of the files to be backed up.
Specifically, the embodiment of the invention determines the backup period through the historical backup time interval, and counts the number of the backup files in a plurality of backup periods to determine the priority detection number, so that the unmodified files do not need to be detected, the calculation resources occupied in the backup process are saved, and the backup efficiency is improved.
Specifically, the sequence of the to-be-backed-up files to be detected is Sf +1 th files, when the to-be-backed-up files to be detected are detected, if backup is needed, whether the Sf +2 th files need to be backed up is continuously detected, and if backup is not needed, the backup period is ended; if the Sf +2 th file needs to be backed up, continuously detecting whether the Sf +3 th file needs to be backed up, if the Sf +2 th file does not need to be backed up, ending the backup cycle, and so on, if the Sf + x th file needs to be backed up (x =3, 4, …, n), continuously detecting whether the Sf + x +1 th file needs to be backed up; if the Sf + x-th file does not need to be backed up, the backup period is ended.
If the backup is not needed, the backup period is finished.
Specifically, by setting the priority detection number, the embodiment of the invention not only detects files needing to be backed up as much as possible, but also does not detect files needing no backup as little as possible, thereby saving the computing resources occupied by the backup process and improving the backup efficiency.
Specifically, after N comparison results are obtained, if the number of the comparison results of which the deviation degree of the backup time interval is smaller than the standard deviation degree is less than or equal to N/2 in the N comparison results, counting N backup time intervals again; if the deviation degree of the backup time intervals in the N comparison results is still smaller than the number of the comparison results of the standard deviation degree and is less than or equal to N/2, then the N backup time intervals are obtained again; the process is repeated until the number of comparison results with the deviation degree of the backup time interval smaller than the standard deviation degree in the N comparison results is more than N/2, and the backup period is ended.
Specifically, the embodiment of the invention collects effective backup time interval data, so that the collected data has smaller error, the obtained average backup time has reasonable value, and the backup method is more scientific and effective, thereby saving the calculation resources occupied in the backup process and improving the backup efficiency.
Specifically, the number N of the backup time intervals ranges from 5 to 9 and is an odd number; the reason is that if N is set to an even number, when the number of comparison results is exactly equal to 2/N, it cannot be determined whether the group of data is valid; if the value of N is too small, the range of the data sample is too small, and the obtained time interval Ta may have a large error and cannot well represent the group of data; if the value of N is too large, the application speed of the backup method is too slow, and the use efficiency of the method is reduced;
if N is set to be 5, the backup method emphasizes the application speed of the method, and the quick application of the backup method is replaced by proper and loose data requirements;
if N is set to be 7, the backup method gives consideration to the balance between the control of the error range and the efficiency, and the application speed of the method is relatively high while the data is required to be relatively centralized;
if N is set to 9, the backup method emphasizes the range of control errors, requiring the backup time intervals to be more concentrated relative to the average.
Specifically, by setting the value range of N in a reasonable interval, the embodiment of the invention not only ensures that the statistical error of the data is smaller, but also saves the time for generating the backup method, improves the efficiency of the backup method, further saves the computing resources occupied by the backup process, and improves the backup efficiency.
Specifically, the value range of the standard deviation is 20% -40%; the reason is that if the value of the standard deviation degree is too low, the number of the backup time intervals meeting the requirement is small, data invalidation is easily caused, the counting times are increased, and the application efficiency of the method is reduced; if the value range of the standard deviation degree is too high, the data requirement on the backup time interval is smaller, the data are more scattered relative to the average time interval, and the statistical significance is poorer;
if the standard deviation degree is set to be 20%, the backup method emphasizes the range of control errors, and the backup time interval is required to be more concentrated relative to the average value;
if the standard deviation degree is set to be 30%, the backup method gives consideration to the balance of error range control and efficiency, and not only is relatively centralized data required, but also the application speed of the method is relatively high;
if the standard deviation is set to 40%, the backup method emphasizes the application speed of the method, and the quick application of the backup method is replaced by proper and relaxed data requirements.
Specifically, the embodiment of the invention ensures that the statistical error of the data is smaller, saves the time for generating the backup method, improves the efficiency of the backup method, further saves the calculation resource occupied by the backup process, and improves the backup efficiency by setting the value range of the standard deviation within a reasonable interval.
Specifically, the value range of the standard coefficient k is 0.2 to 0.4, because if the value of the standard coefficient k is too small, the value of the priority detection number Sf is too small, the probability that the Sf +1 th file needs to be backed up is too high, the success rate of priority detection of the sector data-based backup method is reduced, and more computing resources are wasted; if the value range of the standard coefficient k is too large, the value of the priority detection number Sf is too large, the probability of detecting files which do not need to be backed up is too high in the priority detection process, the success rate of priority detection of the sector data-based backup method is reduced, and more computing resources are wasted.
If the standard coefficient k is set to be 0.2, the backup method considers that the error range of the priority detection number Sf is smaller, considers that the backup frequency has higher probability of falling within the range of the standard coefficient, and the range of the priority detection number Sf is reduced, so that files which are not backed up are detected as little as possible, and the backup efficiency is improved.
If the standard coefficient k is set to be 0.3, the backup method considers that the error range of the priority detection number Sf is moderate, the backup frequency is considered to have a moderate probability of falling within the range of the standard coefficient, and the moderate priority detection number Sf covers files which are frequently backed up and reduces the range of the priority detection number Sf, so that the backup efficiency is improved.
If the standard coefficient k is set to be 0.4, the backup method considers that the error range of the priority detection number Sf is large, the backup frequency is considered to have a small probability of falling within the range of the standard coefficient, and files which are frequently backed up are covered as far as possible by expanding the range of the priority detection number Sf, so that the backup efficiency is improved.
Specifically, the embodiment of the invention sets the value range of the standard coefficient k in a reasonable interval, so that the priority detection number Sf is in a reasonable range, not only files needing to be backed up are detected as much as possible, but also files not needing to be backed up are not detected as little as possible, further the calculation resources occupied by the backup process are saved, and the efficiency of the backup process is improved.
Referring to fig. 2, fig. 2 is a flowchart of another method for sector-based data backup according to an embodiment of the present invention, where the method for sector-based data backup according to the embodiment of the present invention includes:
the server copies files to be backed up to the shared disk, and mounts the shared disk to the host to be backed up through ISCSI;
monitoring file modification, wherein the server starts a monitoring program, and if modification is monitored, the server records the modification into the log to form a backup log;
obtaining a backup period, wherein the backup period is an average time interval Ta, and the average time interval Ta is obtained by the following steps: obtaining N backup time intervals Ti, obtaining an average time interval Ta according to the backup time intervals, calculating the deviation degree of each backup time interval, wherein the deviation degree is | Ti-Ta |/Ta, i =1, 2, …, N, presetting standard deviation degrees, comparing the deviation degree of each backup time interval with the standard deviation degrees to obtain N comparison results, and if the deviation degree of the backup time interval is smaller than the comparison result number of the standard deviation degrees and is greater than N/2 in the N comparison results, taking the average time interval Ta as a backup period;
determining a priority detection number Sf, wherein the determination method of the priority detection number comprises the following steps: setting a period to be counted, wherein the period to be counted comprises M backup periods, the total amount Sj, j =1, 2, …, M of files to be backed up is obtained, files backed up in the backup periods are preposed, the mean value Sb of the total amount of the files to be backed up in the period to be counted is obtained, the preferential detection number is Sf = Sb x (1 + k), and k is a standard coefficient;
when the backup is carried out in the next backup period after the period to be counted, determining the files to be backed up to be detected according to the number of the prior detection numbers Sf and the arrangement sequence of the files to be backed up;
when a file to be detected and backed up is detected, if the file to be detected and backed up needs to be backed up, continuously detecting whether the Sf +2 th file needs to be backed up, if the Sf +2 th file still needs to be backed up, continuously detecting whether the Sf +3 th file needs to be backed up, and circulating the process until the detected file does not need to be backed up, and ending the backup period;
if the backup is not needed, the backup period is ended;
and after the backup period is finished, unloading the shared disk from the host to be backed up.
Specifically, according to an actual scenario applied by the sector data-based backup method in fig. 2, further described, an application scenario of the sector data-based backup method in the embodiment of the present invention includes a source host, a host to be backed up, a server, and a shared disk, where the server is configured to receive requests from the source host and the host to be backed up and send commands from the source host and the host to be backed up, and the monitoring program is configured to monitor modification of a file of the source host, where the modification includes modification of content or name of a file stored in the source host, deletion of the file, and addition of a new file that may exist.
The log is used for storing a monitoring program to record the change of a file, the shared disk is used for being mounted on the host to be backed up through ISCSI, the source host is used for sending a backup command to the server to provide the modification of the file to be backed up, and the host to be backed up is used for receiving and executing the backup command issued by the server and receiving the shared disk sent by the server;
the source host sends a file backup request to the server, and the server receives the file for backup sent by the source host after receiving the request;
the server internally creates a file list for storing the received file, creates a shared disk, copies the file to the shared disk, and mounts the shared disk to the backup host through ISCSI;
the server starts the monitoring program, sends a request for monitoring a corresponding file to the source host according to the file list, records the log if only the modification of the file is monitored, compares the file with the modified file to obtain the data increment and sends the data increment to the server;
after receiving the data increment, the server updates the data increment to the file list in the server, and then sends the data increment to the host to be backed up, and after receiving the data increment, the host to be backed up detects that only the modification of the partial file is involved, so that only the partial file in the shared disk is updated, and the file which is not involved in the modification is not updated;
after the backup is completed, the source host sends a backup ending instruction to the server, the server sends the backup ending instruction to the host to be backed up, the host to be backed up copies the content in the internal shared disk to the local after receiving the instruction, and the shared disk in the host to be backed up is unloaded from the host to be backed up.
Specifically, the embodiment of the invention establishes a channel for the backup of the file by providing the ISCSI carrying shared disk, the monitoring program and the log record, thereby realizing the rapid backup of the file, greatly saving the time required by the backup and further saving the computing resources required by the backup.
Specifically, the embodiment of the invention realizes the improvement of the backup efficiency in the backup process by a backup method based on sector data, establishing the backup method by collecting the existing files in the backup process and continuously optimizing the backup method according to new data, thereby saving the computing resources required by the backup; the monitoring program of the server is set by establishing the relation among the server, the source host and the host to be backed up, and a channel is established for the backup of the file through the shared disk mounted on the host to be backed up, so that the quick backup of the file is realized, the time required by the backup is saved, and further the computing resource required by the backup is saved.
So far, the technical solutions of the present invention have been described in connection with the preferred embodiments shown in the drawings, but it is easily understood by those skilled in the art that the scope of the present invention is obviously not limited to these specific embodiments. Equivalent changes or substitutions of related technical features can be made by those skilled in the art without departing from the principle of the invention, and the technical scheme after the changes or substitutions can fall into the protection scope of the invention.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention; various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. A method for sector data based backup, comprising:
obtaining a backup period, wherein the backup period is an average time interval Ta, and the average time interval Ta is obtained by the following steps:
obtaining N backup time intervals Ti, obtaining an average time interval Ta according to the backup time intervals, calculating the deviation degree of each backup time interval, wherein the deviation degree is | Ti-Ta |/Ta, i =1, 2, …, N, presetting standard deviation degrees, comparing the deviation degree of each backup time interval with the standard deviation degrees to obtain N comparison results, and if the deviation degree of the backup time interval is smaller than the comparison result number of the standard deviation degrees and is greater than N/2 in the N comparison results, taking the average time interval Ta as a backup period;
determining a priority detection number Sf, wherein the determination method of the priority detection number comprises the following steps:
setting a period to be counted, wherein the period to be counted comprises M backup periods, the total amount Sj, j =1, 2, …, M of files to be backed up is obtained, files backed up in the backup periods are preposed, the mean value Sb of the total amount of the files to be backed up in the period to be counted is obtained, the preferential detection number is Sf = Sb x (1 + k), and k is a standard coefficient;
and when the backup is carried out in the next backup period after the period to be counted, determining the files to be backed up to be detected according to the number of the priority detection numbers Sf and the arrangement sequence of the files to be backed up.
2. The sector data based backup method according to claim 1, further comprising: when the files to be detected to be backed up are detected, if the files to be detected to be backed up need to be backed up, continuously detecting whether the files Sf +2 need to be backed up, if the files Sf +2 still need to be backed up, continuously detecting whether the files Sf +3 need to be backed up, and circulating the process until the detected files do not need to be backed up, wherein the backup period is ended;
if the backup is not needed, the backup period is finished.
3. The sector data based backup method according to claim 2, further comprising:
after N comparison results are obtained, if the number of the comparison results of which the deviation degrees of the backup time intervals are smaller than the standard deviation degree is less than or equal to N/2 in the N comparison results, counting N backup time intervals again; if the deviation degree of the backup time intervals in the N comparison results is still smaller than the number of the comparison results of the standard deviation degree and is less than or equal to N/2, then the N backup time intervals are obtained again; the process is repeated until the number of comparison results with the deviation degree of the backup time interval smaller than the standard deviation degree in the N comparison results is more than N/2, and the backup period is ended.
4. The method of claim 1, wherein the number N of backup time intervals is 5, 7 or 9.
5. The sector data based backup method according to claim 3, wherein 40% or more of said standard deviation is 20% or more.
6. The sector data-based backup method according to claim 5, wherein 0.4 ≧ the standard coefficient k ≧ 0.2.
7. The sector data based backup method according to claim 1, further comprising:
before obtaining the N backup time intervals, the server mounts a backup disk to a host to be backed up through ISCSI, wherein the backup disk is used for backing up files, and the host to be backed up is used for storing the backed-up files;
and carrying out full backup on a source directory for the first time, wherein the source directory is used for representing storage addresses of all files in an initial state, and the full backup represents that the first backup is carried out on all files to be backed up.
8. The method for sector data based backup according to claim 7, further comprising:
after the source directory is fully backed up, a monitoring program is started, the monitoring program is used for reading all file operations in a log during backup, the log is used for recording the content of the file operations in each modification, and the file operations comprise the addition, modification and deletion of the file content and the addition and deletion of files.
9. The method for sector data based backup according to claim 8, further comprising:
after the monitoring program is started, except for the first adoption of the full backup, only files with modification records are compared by reading logs recorded by the monitoring program during the later backup, so that the increment between the new file and the old file is obtained, and the increment is backed up.
10. The method for sector data based backup according to claim 9, further comprising:
after the host to be backed up receives the instruction of finishing the backup, an uninstalling program is started, wherein the uninstalling program is used for uninstalling the backup disk from the host to be backed up.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110850834.1A CN113297012B (en) | 2021-07-27 | 2021-07-27 | Backup method based on sector data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110850834.1A CN113297012B (en) | 2021-07-27 | 2021-07-27 | Backup method based on sector data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113297012A CN113297012A (en) | 2021-08-24 |
CN113297012B true CN113297012B (en) | 2021-11-09 |
Family
ID=77331304
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110850834.1A Active CN113297012B (en) | 2021-07-27 | 2021-07-27 | Backup method based on sector data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113297012B (en) |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101840357B (en) * | 2010-04-08 | 2012-09-05 | 北京星网锐捷网络技术有限公司 | Clock backup method and clock backup device |
EP3396580B1 (en) * | 2017-04-25 | 2020-01-01 | Druva, Inc. | Multi-step approach for ransomware detection |
CN110365930B (en) * | 2018-04-11 | 2021-07-30 | 视联动力信息技术股份有限公司 | Data processing method and device |
CN109802966A (en) * | 2019-01-25 | 2019-05-24 | 深圳市众泰兄弟科技发展有限公司 | A kind of network intrusions behavioural analysis detection method based on letter frame |
CN110083490A (en) * | 2019-04-29 | 2019-08-02 | 浙江豪联信息科技有限公司 | A kind of database backup method, restoring method and storage medium |
CN110364049B (en) * | 2019-07-17 | 2021-03-30 | 石虹 | Professional skill training auxiliary teaching system with automatic deviation degree feedback data closed-loop deviation rectification control and auxiliary teaching method |
CN112148530A (en) * | 2020-09-28 | 2020-12-29 | 上海爱数信息技术股份有限公司 | Data timing volume level backup method and system thereof |
-
2021
- 2021-07-27 CN CN202110850834.1A patent/CN113297012B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN113297012A (en) | 2021-08-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7293145B1 (en) | System and method for data transfer using a recoverable data pipe | |
CN108241555B (en) | Backup and recovery method and device of distributed database and server | |
JP6044539B2 (en) | Distributed storage system and method | |
US8015441B2 (en) | Verification of computer backup data | |
US7421551B2 (en) | Fast verification of computer backup data | |
US6898600B2 (en) | Method, system, and program for managing database operations | |
CN102265277B (en) | Operation method and device for data memory system | |
US6397351B1 (en) | Method and apparatus for rapid data restoration including on-demand output of sorted logged changes | |
US7415585B1 (en) | Space-optimized backup repository grooming | |
EP3839716B1 (en) | Data storage method and apparatus and storage system | |
CN102479118B (en) | Incremental backup method for data blocks | |
US10936216B2 (en) | Method and system for storage exhaustion estimation | |
US6009502A (en) | Method and apparatus for fast and robust data collection | |
CN108762984B (en) | Method and device for continuous data backup | |
WO2019024910A1 (en) | Storage resource recovery method, apparatus and system | |
US7941619B1 (en) | Space-optimized backup set conversion | |
US7506117B2 (en) | Data recovery method for computer system | |
CN112783445A (en) | Data storage method, device, system, electronic equipment and readable storage medium | |
US8271454B2 (en) | Circular log amnesia detection | |
CN115658382A (en) | Incremental object backup recovery method and system for object storage and storage medium | |
CN114416665B (en) | Method, device and medium for detecting and repairing data consistency | |
CN113885809B (en) | Data management system and method | |
US10671567B2 (en) | System and method for optimized lock detection | |
CN113297012B (en) | Backup method based on sector data | |
US11055184B2 (en) | In-place garbage collection of a sharded, replicated distributed state machine based on supersedable operations |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |