CN109271285B - File backup method, equipment and computer storage medium - Google Patents
File backup method, equipment and computer storage medium Download PDFInfo
- Publication number
- CN109271285B CN109271285B CN201811339323.8A CN201811339323A CN109271285B CN 109271285 B CN109271285 B CN 109271285B CN 201811339323 A CN201811339323 A CN 201811339323A CN 109271285 B CN109271285 B CN 109271285B
- Authority
- CN
- China
- Prior art keywords
- file
- server
- user
- validity period
- backup
- 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
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000011084 recovery Methods 0.000 claims description 4
- 230000006399 behavior Effects 0.000 abstract description 15
- 230000003287 optical effect Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 5
- 238000004590 computer program Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000003190 augmentative effect Effects 0.000 description 2
- 230000015572 biosynthetic process Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000037303 wrinkles Effects 0.000 description 2
- 238000012935 Averaging Methods 0.000 description 1
- WQZGKKKJIJFFOK-GASJEMHNSA-N Glucose Natural products OC[C@H]1OC(O)[C@H](O)[C@@H](O)[C@@H]1O WQZGKKKJIJFFOK-GASJEMHNSA-N 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 239000008280 blood Substances 0.000 description 1
- 210000004369 blood Anatomy 0.000 description 1
- 230000036772 blood pressure Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004883 computer application Methods 0.000 description 1
- 239000008103 glucose Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 239000004984 smart glass Substances 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
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
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 provides a method, equipment and a computer storage medium for file backup, wherein the method comprises the following steps: acquiring a file uploaded by a client; determining the validity period of the file on a server based on the historical behaviors of the user or the setting of the user for the file; storing the file to a backup folder on a server; and if the backup time of the file on the server reaches the validity period of the file on the server, deleting the file from the backup folder. The method does not need the user to manually delete the files backed up on the server, simplifies the operation of deleting the backed-up files and improves the intelligent degree.
Description
[ technical field ] A method for producing a semiconductor device
The present invention relates to the field of computer application technologies, and in particular, to a method and an apparatus for file backup, and a computer storage medium.
[ background of the invention ]
With the popularization of intelligent terminals and the rapid development of network technologies, many applications on the intelligent terminals have a cloud backup function. The cloud backup is to backup personal data, such as address book, short message, picture, video and other data, on the network end in a file manner through cloud storage. The cloud backup is not limited by space and equipment on one hand, and does not use a data line, and the backup data is safer on the other hand.
Most of existing cloud backup schemes need to manually delete files backed up on a cloud server and put the files into a recycle bin, and most of the recycle bins need to be manually cleared again. However, a user usually deletes the files backed up on the cloud server manually only when the storage space on the cloud server is insufficient, and needs to manually identify which files need to be deleted from the numerous files backed up on the cloud server, which obviously means that the operation is very complicated, and the degree of intelligence is low.
[ summary of the invention ]
In view of this, the present invention provides a method, an apparatus, and a computer storage medium for file backup, so as to simplify the operation of deleting a backup file and improve the degree of intelligence.
The specific technical scheme is as follows:
in one aspect, the present invention provides a method for backing up a file, including:
acquiring a file uploaded by a client;
determining the validity period of the file on a server based on the historical behaviors of the user or the setting of the user for the file;
storing the file to a backup folder on a server;
and if the backup time of the file on the server reaches the validity period of the file on the server, deleting the file from the backup folder.
According to a preferred embodiment of the invention, the method further comprises:
acquiring the setting information of the user aiming at the file, which is sent by the client;
the determining the validity period of the file on the server based on the historical behavior of the user or the setting of the user for the file comprises:
if the setting information of the user for the file, which is sent by the client, is obtained, the validity period of the file on the server is determined based on the setting of the user for the file; otherwise, determining the validity period of the file on the server based on the historical behavior of the user.
According to a preferred embodiment of the present invention, the determining the validity period of the file on the server based on the historical behavior of the user includes:
and determining the validity period of the file on the server based on the historical access frequency of the user for the file and/or the access preference of the category to which the user belongs to the category to which the file belongs.
According to a preferred embodiment of the present invention, determining the validity period of the file on the server based on the historical access frequency of the user for the file and the access preference of the category to which the user belongs to the category to which the file belongs comprises:
determining a score for a file frequency dimension based on a historical access frequency of a user for the file;
determining the score of the file category corresponding to the user category according to a preset score table which embodies the access preference of each user category to each file category;
weighting the scores of the file frequency dimensions and the scores of the file categories corresponding to the categories to which the users belong to obtain total scores of the files;
and determining the validity period corresponding to the total score as the validity period of the file on the server according to the corresponding relation between the preset total score and the validity period.
According to a preferred embodiment of the present invention, determining the validity period of the file on the server based on the setting of the file by the user comprises:
and taking the validity period set by the user for the file as the validity period of the file on the server.
According to a preferred embodiment of the present invention, the server includes N backup folders corresponding to the respective validity periods, where N is a positive integer greater than 1;
storing the file to a backup folder on a server comprises:
and storing the file to a backup folder corresponding to the validity period on the server according to the validity period of the file on the server.
According to a preferred embodiment of the present invention, the server includes a backup folder in a first directory and a backup folder in a second directory; the first directory comprises M backup folders corresponding to the respective valid periods, and M is a positive integer greater than 1;
storing the file to a backup folder on a server comprises:
if the validity period of the file on the server is determined based on the setting of the user for the file, storing the file to a backup folder corresponding to the validity period under a first directory on the server;
and if the validity period of the file on the server is determined based on the historical behavior of the user, storing the file to a backup folder in a second directory on the server.
According to a preferred embodiment of the present invention, deleting the file from the backup folder comprises:
the file is moved from the backup folder to a recycle bin.
According to a preferred embodiment of the invention, the method further comprises:
and permanently deleting the file after the file reaches a preset time in the recycle bin.
According to a preferred embodiment of the invention, the method further comprises:
and the file is moved to a recycle bin and a prompt message is periodically sent to the client before the recycle bin reaches a preset time length.
According to a preferred embodiment of the invention, the method further comprises:
and when a file recovery request sent by the client aiming at the file is received, the file is moved back to the backup folder from the recycle bin.
In another aspect, the present invention provides an apparatus comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the methods described above.
In yet another aspect, the invention also provides a storage medium containing computer-executable instructions for performing the above-described method when executed by a computer processor.
According to the technical scheme, the file backup method and the file backup device can determine the validity period of the file on the server based on the historical behaviors of the user or the setting of the user for the file, and automatically delete the file from the backup folder if the backup time of the file on the server reaches the validity period. The method does not need the user to manually delete the files backed up on the server, simplifies the operation of deleting the backed-up files and improves the intelligent degree.
[ description of the drawings ]
FIG. 1 is a flowchart of a method for backing up files according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a backup folder according to an embodiment of the present invention;
FIG. 3 illustrates a block diagram of an exemplary computer system/server suitable for use in implementing embodiments of the present invention.
[ detailed description ] embodiments
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
Fig. 1 is a flowchart of a method for backing up a file according to an embodiment of the present invention, where the method is executed by a server, and an execution subject may be an application located at the server, or may also be a functional unit such as a plug-in or Software Development Kit (SDK) in the application located at the server, which is not particularly limited in the embodiment of the present invention. As shown in fig. 1, the method mainly comprises the following steps:
in 101, a file uploaded by a client is obtained.
The client runs in the intelligent terminal, and the intelligent terminal related to the embodiment of the invention can include but is not limited to: intelligent mobile terminals, intelligent home devices, network devices, wearable devices, intelligent medical devices, PCs (personal computers), and the like. Wherein the smart mobile device may include devices such as a cell phone, a tablet computer, a notebook computer, a PDA (personal digital assistant), an internet automobile, etc. The intelligent household equipment can comprise intelligent household equipment, such as an intelligent television, an intelligent air conditioner, an intelligent water heater, an intelligent refrigerator, an intelligent air purifier and the like, and the intelligent household equipment can further comprise an intelligent door lock, an intelligent socket, an intelligent electric lamp, an intelligent camera and the like. The network devices may include devices such as switches, wireless APs, servers, and the like. Wearable devices may include devices such as smart watches, smart glasses, smart bracelets, virtual reality devices, augmented reality devices, mixed reality devices (i.e., devices that can support virtual reality and augmented reality), and so forth. The intelligent medical device may include, for example, an intelligent thermometer, an intelligent blood pressure meter, an intelligent blood glucose meter, and the like.
In the embodiment of the present invention, the file uploaded by the client may be a file locally selected by the user from the smart terminal, for example, the user manually selects a file to be uploaded from the smart terminal locally through an interface of the client. Or a local new file periodically uploaded by the client, for example, the user may set the client to periodically upload the local new file or the client may default to periodically upload the local new file.
When uploading a file, the client may send a file backup request to the server, where the file backup request includes a file to be uploaded.
At 102, the validity period of the file on the server is determined based on the user's historical behavior or the user's settings for the file.
In the embodiment of the invention, the validity period of the file on the server can be determined based on the historical behavior of the user, and also can be determined based on the setting of the user for the file.
As an optional implementation manner, if setting information of the user for the file, which is sent by the client, is obtained, based on the setting of the user for the file, a validity period of the file on the server is determined; otherwise, determining the validity period of the file on the server based on the historical behavior of the user.
When sending a file backup request, the client may include a file to be uploaded and also include setting information of a user for the file. That is, when the user selects a file to be uploaded on the client interface, selectable validity periods, such as 3 months, 6 months, 1 year, permanent, etc., may be provided to the user on the client interface at the same time, and the user selects one validity period as the setting information; the user can also input the setting information of the validity period of the file on the server by himself. In addition, the setting information may be sent in the file backup request together with the file, or may be sent separately through two requests, which is not limited by the present invention.
When the validity period of the file on the server is determined based on the setting of the user for the file, the validity period set by the user for the file can be directly used as the validity period of the file on the server.
When determining the validity period of the file on the server based on the historical behaviors of the user, the validity period of the file on the server can be determined based on the historical access frequency of the user for the file and/or the access preference of the category to which the user belongs to the category to which the file belongs.
The following describes an example of determining the validity period of a file on a server based on the historical access frequency of a user for the file and the access preference of the category to which the user belongs to the file. The process may include the following steps S1 to S4:
and S1, determining the score of the file frequency dimension based on the historical access frequency of the user for the file.
Where the user refers to the user who uploaded the file. The higher the user's historical access frequency to the file, the higher the score of the file frequency dimension for the file. Or respectively counting the access frequency of the user to the file according to each time stage, and then weighting the statistical value of each time stage according to the weight of each time stage to obtain the score of the file frequency temperature. For example, the number of times that the user accessed the file in the past 3 months is obtained, and the number of times that the user accessed the file in each month of the 3 months is weighted in units of months, wherein the closer month to the current month corresponds to a higher weight.
The weighting process may adopt weighted summation, weighted averaging, and the like.
S2, determining the score of the file category corresponding to the user category according to a preset score table which embodies the access preference of each user category to each file category.
A scoring table of each file category corresponding to one user category may be preset and maintained, where the user categories may be classified according to user attributes, such as gender, occupation, and region. The file categories may include pictures, videos, address books, and the like. The scoring table expresses the access preference of each user category to each file category, and can count the access frequency of each category of users to each type of files within a set time length according to the user behavior log and determine the score according to the statistical result. Wherein, if the access frequency of a certain class of users to a certain class of files is higher, the score of the user class corresponding to the file class is higher.
An example score table is as follows:
TABLE 1
User categories | Document classification | Score meter |
Male sex | Picture board | 0.3 |
Female with a view to preventing the formation of wrinkles | Picture frame | 0.7 |
Male sex | Video | 0.3 |
Female with a view to preventing the formation of wrinkles | Video | 0.7 |
IT practitioner | Picture frame | 0.4 |
Teacher's teacher | Picture frame | 0.6 |
… | … | … |
And S3, weighting the score of the file frequency dimension and the score of the file belonging category corresponding to the user belonging category to obtain the total score of the file.
The scoring weight of the file frequency dimension and the scoring weight of the file category corresponding to the file category to which the user belongs can be set according to an empirical value and can also be adjusted according to actual conditions.
S4, determining the validity period corresponding to the total score as the validity period of the file on the server according to the corresponding relation between the preset total score and the validity period.
Wherein in the above correspondence, the higher the total score is, the longer the validity period corresponds to. For example, a correspondence such as shown in the following table may be maintained:
TABLE 2
Total score | Period of validity |
0.1 | 1 month |
0.2 | 2 months old |
0.3 | 3 months old |
0.4 | 4 months old |
0.5 | For 5 months |
0.6 | 6 months old |
0.7 | 7 months old |
… | … |
In 103, the file is stored to a backup folder on the server and the validity period of the file on the server is recorded.
A certain amount of storage space can be set for each user, and the storage space can be automatically allocated to the user or can be purchased and ordered by the user.
As an optional implementation manner, the server may include backup folders corresponding to N validity periods, where N is a positive integer greater than 1; in this step, the file may be stored in the backup folder corresponding to the validity period of the file on the server according to the validity period of the file on the server.
For example, backup folders corresponding to validity periods of 1 month, 3 months, 6 months, 1 year and the like are set, files with the validity period of 3 months are placed into the backup folders corresponding to the validity period of 3 months, and then the files are deleted from the backup folders when the validity period of 3 months reaches according to the storage time of each file in the backup folders.
As another alternative, the server may include a backup folder in the first directory and a backup folder in the second directory. In an embodiment of the present invention, the first directory may be a backup directory, and the second directory may be an auto directory. The backup directory comprises M backup folders corresponding to the valid periods respectively, and M is a positive integer larger than 1. In this step, if the validity period of the file on the server is determined based on the setting of the user for the file, the file is stored in the backup folder corresponding to the validity period in the backup directory on the server.
And if the validity period of the file on the server is determined based on the historical behaviors of the user, storing the file to a backup folder under the auto directory on the server. Each file in the backup folder under the auto directory has a respective validity period.
For example, as shown in fig. 2, backup folders corresponding to validity periods of 1 month, 3 months, 6 months, 1 year, and the like are set under the backup directory, and only one backup folder is set under the auto directory, and the files in the backup folders have respective validity periods.
In addition, the user may set a special validity period, i.e., permanent. Or automatically setting the validity period of the important files to be permanent at the server side for the important files of a specific type. As an alternative embodiment, there may be a backup folder that is persistent in terms of validity, and the files stored in the folder are not automatically deleted unless the user manually deletes them.
The setting of the plurality of backup folders can facilitate a user to query and manage the files backed up at the server side, and of course, only one backup folder may be set in the storage space, and all the files are stored in the backup folder.
At 104, if the backup time of the file on the server reaches the validity period of the file on the server, the file is deleted from the backup folder.
In this step, the file may be moved from the backup folder to the recycle bin. At this time, the process in this embodiment may further include:
at 105, the file is moved to the recycle bin and a prompt message may be periodically sent to the client before the recycle bin reaches a preset duration.
For example, when the file is moved to a recycle bin, a prompt message may be sent to the user every other week, and the template of the prompt message may be: "the file named ___ has been moved to the recycle bin and is about to be permanently deleted for __ days".
Thus, after receiving the prompt message, the user can decide whether to continue to backup the file. If the user feels that a certain file is important and needs to be backed up continuously, a file recovery request can be sent to the server side through the client side. If the server receives a file recovery request sent by the client for the file in the process of the recycle bin, the file can be moved from the recycle bin back to the backup folder.
At 106, the file is permanently deleted after the file has been in the recycle bin for a preset length of time.
Since the storage space normally allocated to the user at the server side is a certain amount, for example, 500M, when the storage space is fully occupied, the storage cannot be continued. When the storage space is full, the server side can send a prompt message that the storage space is full to the client side, and can prompt the user whether to expand the capacity. If the user selects to expand the capacity, the storage space of the user at the server end can be expanded through modes of payment and the like. Alternatively, the user may also choose to manually delete the server-side backed-up files, such as deleting files in the recycle bin or deleting files in the backup folder.
In summary, the method provided by the above method embodiments may have the following advantages:
1) the method and the device can determine the validity period of the file on the server based on the historical behavior of the user or the setting of the user for the file, and automatically delete the file from the backup folder if the backup time of the file on the server reaches the validity period. The method does not need the user to manually delete the files backed up on the server, simplifies the operation of deleting the backed-up files and improves the intelligent degree.
2) The file backup method based on the server comprises the steps that the validity period of a file on the server is determined according to the setting of a user for the file, and the backup time of the file by the user is reflected directly. The validity period of the file on the server determined based on the historical behaviors of the user can meet the access requirement degree of the user on the file as much as possible. In any way, the intelligent degree of deleting the backup files is higher.
3) Corresponding backup folders are respectively set according to different valid periods of the files on the server, so that a user can conveniently inquire and manage the backup files on the server.
4) The prompt message aiming at the file in the recycle bin enables a user to know the file to be permanently deleted in time so as to determine whether to continue to backup the file.
FIG. 3 illustrates a block diagram of an exemplary computer system/server suitable for use in implementing embodiments of the present invention. The computer system/server 012 shown in fig. 3 is only an example, and should not bring any limitations to the function and the scope of use of the embodiments of the present invention.
As shown in fig. 3, the computer system/server 012 is embodied as a general purpose computing device. The components of computer system/server 012 may include, but are not limited to: one or more processors or processing units 016, a system memory 028, and a bus 018 that couples various system components including the system memory 028 and the processing unit 016.
Computer system/server 012 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer system/server 012 and includes both volatile and nonvolatile media, removable and non-removable media.
Program/utility 040 having a set (at least one) of program modules 042 can be stored, for example, in memory 028, such program modules 042 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof might include an implementation of a network environment. Program modules 042 generally perform the functions and/or methodologies of embodiments of the present invention as described herein.
The computer system/server 012 may also communicate with one or more external devices 014 (e.g., keyboard, pointing device, display, etc.), hi the present invention, the computer system/server 012 communicates with an external radar device, also with one or more devices that enable a user to interact with the computer system/server 012, and/or with any devices (e.g., network card, modem, etc.) that enable the computer system/server 012 to communicate with one or more other computing devices. Such communication may occur through input/output (I/O) interfaces 022. Also, the computer system/server 012 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 020. As shown, the network adapter 020 communicates with the other modules of the computer system/server 012 via bus 018. It should be appreciated that although not shown in fig. 3, other hardware and/or software modules may be used in conjunction with the computer system/server 012, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 016 executes programs stored in the system memory 028, thereby executing various functional applications and data processing, such as implementing the method flow provided by the embodiment of the present invention.
The computer program described above may be provided in a computer storage medium encoded with a computer program that, when executed by one or more computers, causes the one or more computers to perform the method flows and/or apparatus operations shown in the above-described embodiments of the invention. For example, the method flows provided by the embodiments of the invention are executed by one or more processors described above.
With the development of time and technology, the meaning of media is more and more extensive, and the propagation path of computer programs is not limited to tangible media any more, and can also be downloaded from a network directly and the like. Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (11)
1. A method of file backup, the method comprising:
acquiring a file uploaded by a client;
determining the validity period of the file on the server based on the historical access frequency of the user for the file and the access preference of the category to which the user belongs to the category to which the file belongs;
storing the file to a backup folder on a server;
if the backup time of the file on the server reaches the validity period of the file on the server, deleting the file from the backup folder; wherein,
determining the validity period of the file on a server based on the historical access frequency of the user for the file and the access preference of the category to which the user belongs to the category to which the file belongs, wherein the determining comprises the following steps:
determining a score for a file frequency dimension based on a historical access frequency of a user for the file;
determining the score of the file category corresponding to the user category according to a preset score table which embodies the access preference of each user category to each file category;
weighting the scores of the file frequency dimensions and the scores of the file categories corresponding to the categories to which the users belong to obtain total scores of the files;
and determining the validity period corresponding to the total score as the validity period of the file on the server according to the corresponding relation between the preset total score and the validity period.
2. The method of claim 1, further comprising:
acquiring the setting information of the user aiming at the file, which is sent by the client;
the determining the validity period of the file on the server based on the historical behavior of the user or the setting of the user for the file comprises:
if the setting information of the user for the file, which is sent by the client, is obtained, the validity period of the file on the server is determined based on the setting of the user for the file; otherwise, determining the validity period of the file on the server based on the historical behavior of the user.
3. The method of claim 1, wherein determining the validity period of the file on the server based on the user's settings for the file comprises:
and taking the validity period set by the user for the file as the validity period of the file on the server.
4. The method according to claim 1, wherein the server comprises N backup folders corresponding to the respective validity periods, wherein N is a positive integer greater than 1;
storing the file to a backup folder on a server comprises:
and storing the file to a backup folder corresponding to the valid period on the server according to the valid period of the file on the server.
5. The method of claim 1 or 2, comprising on the server a backup folder under a first directory and a backup folder under a second directory; the first directory comprises M backup folders corresponding to the respective valid periods, and M is a positive integer greater than 1;
storing the file to a backup folder on a server comprises:
if the validity period of the file on the server is determined based on the setting of the user for the file, storing the file to a backup folder corresponding to the validity period under a first directory on the server;
and if the validity period of the file on the server is determined based on the historical behavior of the user, storing the file to a backup folder in a second directory on the server.
6. The method of claim 1 or 4, wherein deleting the file from the backup folder comprises:
the file is moved from the backup folder to a recycle bin.
7. The method of claim 6, further comprising:
and permanently deleting the file after the file reaches a preset time in the recycle bin.
8. The method of claim 6, further comprising:
and the file is moved to a recycle bin and a prompt message is periodically sent to the client before the recycle bin reaches a preset time length.
9. The method of claim 6, further comprising:
and when a file recovery request sent by the client aiming at the file is received, the file is moved back to the backup folder from the recycle bin.
10. An electronic device, characterized in that the device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-9.
11. A storage medium containing computer-executable instructions for performing the method of any one of claims 1-9 when executed by a computer processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811339323.8A CN109271285B (en) | 2018-11-12 | 2018-11-12 | File backup method, equipment and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811339323.8A CN109271285B (en) | 2018-11-12 | 2018-11-12 | File backup method, equipment and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109271285A CN109271285A (en) | 2019-01-25 |
CN109271285B true CN109271285B (en) | 2022-05-27 |
Family
ID=65193006
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811339323.8A Active CN109271285B (en) | 2018-11-12 | 2018-11-12 | File backup method, equipment and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109271285B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110413448A (en) * | 2019-06-28 | 2019-11-05 | 苏州浪潮智能科技有限公司 | A kind of cloud host backup method and apparatus |
CN110502370B (en) * | 2019-08-21 | 2022-03-15 | 华云数据控股集团有限公司 | Method for automatically cleaning backup object |
CN111176906A (en) * | 2020-01-02 | 2020-05-19 | 无锡华云数据技术服务有限公司 | Automatic cleaning method for backup data |
CN113010350A (en) * | 2021-03-23 | 2021-06-22 | 中国联合网络通信集团有限公司 | Cloud photo album processing method and device, computer equipment and storage medium |
CN114036000B (en) * | 2021-10-19 | 2024-08-09 | 航天信息股份有限公司 | File backup and cleaning method and system suitable for PostgreSQL main and standby environment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101047761A (en) * | 2006-03-30 | 2007-10-03 | 村田机械株式会社 | Server device with certificate revocation list acquiring function |
CN101107874A (en) * | 2005-01-21 | 2008-01-16 | 松下电器产业株式会社 | Backup system, relay device, information terminal, and backup device |
CN102236588A (en) * | 2010-04-23 | 2011-11-09 | 阿里巴巴集团控股有限公司 | Remote data backup method, equipment and system |
CN104657494A (en) * | 2015-03-06 | 2015-05-27 | 四川智羽软件有限公司 | Access method for website database |
CN106570163A (en) * | 2016-11-07 | 2017-04-19 | 深圳市任子行科技开发有限公司 | Unreliable environment-oriented audit log read-write managing method and system |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8880475B2 (en) * | 2011-04-08 | 2014-11-04 | International Business Machines Corporation | Reusing snapshots in a network data management protocol backup operation |
CN103513956B (en) * | 2012-06-26 | 2016-04-06 | 阿里巴巴集团控股有限公司 | A kind of method of processor processes data and device |
KR20160050713A (en) * | 2014-10-30 | 2016-05-11 | 삼성전자주식회사 | Method and Electronic Device for storing audio data |
GB2532926A (en) * | 2014-11-27 | 2016-06-08 | Ibm | Managing time-dependent electronic files |
EP3238420A4 (en) * | 2014-12-24 | 2018-09-12 | McAfee, Inc. | Mechanism for automatic creation and access to favorite personal cloud data |
CN104951971B (en) * | 2015-05-22 | 2018-12-04 | 腾讯科技(北京)有限公司 | information display system, method and device |
CN107911711B (en) * | 2017-10-24 | 2020-09-01 | 北京邮电大学 | Edge cache replacement improvement method considering partitions |
-
2018
- 2018-11-12 CN CN201811339323.8A patent/CN109271285B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101107874A (en) * | 2005-01-21 | 2008-01-16 | 松下电器产业株式会社 | Backup system, relay device, information terminal, and backup device |
CN101047761A (en) * | 2006-03-30 | 2007-10-03 | 村田机械株式会社 | Server device with certificate revocation list acquiring function |
CN102236588A (en) * | 2010-04-23 | 2011-11-09 | 阿里巴巴集团控股有限公司 | Remote data backup method, equipment and system |
CN104657494A (en) * | 2015-03-06 | 2015-05-27 | 四川智羽软件有限公司 | Access method for website database |
CN106570163A (en) * | 2016-11-07 | 2017-04-19 | 深圳市任子行科技开发有限公司 | Unreliable environment-oriented audit log read-write managing method and system |
Non-Patent Citations (2)
Title |
---|
Bat批处理备份文件夹、并删除指定日期前的过期文件夹;zding92;《https://blog.csdn.net/u011481543/article/details/50674094》;20160216;全文 * |
基于生命周期的银行业数据备份管理研究;唐耀芳;《中国优秀硕士学位论文全文数据库 信息科技辑》;20110315(第03期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN109271285A (en) | 2019-01-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109271285B (en) | File backup method, equipment and computer storage medium | |
US11301729B2 (en) | Systems and methods for inferential sharing of photos | |
CN109348237B (en) | Live broadcast room management method and device, server and storage medium | |
CN105827706B (en) | Message pushing device and method | |
CN110909222B (en) | User portrait establishing method and device based on clustering, medium and electronic equipment | |
CN107133263B (en) | POI recommendation method, device, equipment and computer readable storage medium | |
CN108427701B (en) | Method for identifying help information based on operation page and application server | |
CN109246483B (en) | Live broadcast room recommendation method, device, equipment and storage medium | |
CN109960554B (en) | Method, device and computer storage medium for displaying reading content | |
CN109542680A (en) | A kind of method of file backup, equipment and computer storage medium | |
CN112486966A (en) | Expired data cleaning method and device and electronic equipment | |
CN107729944B (en) | Identification method and device of popular pictures, server and storage medium | |
CN114090891A (en) | Personalized content recommendation method, device, equipment and storage medium | |
CN117519682A (en) | Component layout method, device, computer equipment and storage medium | |
CN112528151A (en) | Object display method and device, electronic equipment and storage medium | |
CN106487653B (en) | Message processing method and server | |
CN112367247B (en) | Message notification display method, device and equipment | |
CN109257648B (en) | Method, device, terminal and storage medium for correcting similarity between live broadcasts | |
CN112883316A (en) | Data processing method and device, electronic equipment and storage medium | |
CN111369375A (en) | Social relationship determination method, device, equipment and storage medium | |
CN111221817A (en) | Service information data storage method and device, computer equipment and storage medium | |
CN112417310B (en) | Method for establishing intelligent service index and recommending intelligent service | |
CN113065061B (en) | Information display method, device and server | |
CN110363401B (en) | Integrated viscosity evaluation method and device, computer equipment and storage medium | |
CN113781151B (en) | Target data determining method and device, electronic equipment and storage medium |
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 |