CN107562568B - File backup method and device - Google Patents

File backup method and device Download PDF

Info

Publication number
CN107562568B
CN107562568B CN201610513636.5A CN201610513636A CN107562568B CN 107562568 B CN107562568 B CN 107562568B CN 201610513636 A CN201610513636 A CN 201610513636A CN 107562568 B CN107562568 B CN 107562568B
Authority
CN
China
Prior art keywords
file
backed
terminal
server
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
Application number
CN201610513636.5A
Other languages
Chinese (zh)
Other versions
CN107562568A (en
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610513636.5A priority Critical patent/CN107562568B/en
Priority to CN202410357126.8A priority patent/CN118051385A/en
Priority to PCT/CN2016/093959 priority patent/WO2018000524A1/en
Publication of CN107562568A publication Critical patent/CN107562568A/en
Application granted granted Critical
Publication of CN107562568B publication Critical patent/CN107562568B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation

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 and a device for backing up files, wherein the method comprises the following steps: the terminal backs up the file to be backed up to the server to obtain a backup file, and distributes a preset identifier for the file to be backed up which is positioned at the local position of the terminal, wherein the preset identifier is used for indicating that the file to be backed up is backed up to the server. By adopting the technical scheme, the problem of inconvenient file management of the terminal is solved, and the terminal timely knows whether the file has network backup or not so as to manage and operate.

Description

File backup method and device
Technical Field
The invention relates to the field of communication, in particular to a method and a device for backing up files.
Background
With the improvement of the mobile phone camera and shooting technology of the terminal, more and more users use the terminal to shoot and shoot at any time and any place, and the users can backup a large amount of multimedia files to various social software and network disks such as various network servers, hundred-degree network disks, microblogs and the like. Because each user may upload and backup different files to different social networking service (Social Networking Services, abbreviated SNS) software or web discs, the user may forget over time that local photos were uploaded or to which servers they were backed up, and that local photos have no record of these uploads. If the space of the terminal used by the user is full, the user has to delete or clean some history files, the problem is solved, which files are uploaded to the network server by me, and which files are not uploaded. Uploading the network file to that server specifically.
Aiming at the problem of inconvenient management of terminal files in the related art, no effective solution exists at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for backing up files, which at least solve the problem of inconvenient management of terminal files in the related art.
According to one embodiment of the present invention, there is provided a method of backing up files, including: the terminal backs up the file to be backed up to the server to obtain a backup file; the terminal distributes preset identifiers for the files to be backed up, which are located in the local area of the terminal, wherein the preset identifiers are used for indicating that the files to be backed up are backed up to the server.
Optionally, after the terminal backs up the file to be backed up to the server to obtain the backed up file, the method further includes: the terminal obtains the network address of the server and generates the preset identification according to the network address.
Optionally, after the terminal backs up the file to be backed up to the server to obtain the backed up file, the method further includes: the terminal obtains the network address of the server and associates the network address with the file to be backed up, wherein the terminal inquires the backup file corresponding to the file to be backed up according to the network address.
Optionally, the method further comprises: and the terminal inquires the real-time state of the backup file in the server according to a preset period.
Optionally, the terminal queries the real-time state of the backup file in the server according to a preset period, including: the terminal accesses the network address in a ping mode and takes an access result as the real-time state, wherein the real-time state is that the backup file exists in the server when the access result is that the access is successful, and the real-time state is that the backup file does not exist in the server when the access result is that the access is failed.
Optionally, after the terminal allocates a preset identifier to the file to be backed up, which is located locally in the terminal, the terminal manages the file to be backed up according to the preset identifier, and the mode of managing the file to be backed up includes one of the following: deleting the file to be backed up; and editing the file to be backed up.
According to another embodiment of the present invention, there is provided an apparatus for backing up files, applied to a terminal, including: the backup module is used for backing up the files to be backed up to the server to obtain backup files; the distribution module is used for distributing preset identifiers to the files to be backed up, which are located in the terminal, wherein the preset identifiers are used for indicating that the files to be backed up are backed up to the server.
Optionally, the backup module is further configured to, after the terminal backs up the file to be backed up to the server to obtain the backup file, obtain a network address of the server by the terminal, and generate the preset identifier according to the network address.
Optionally, the backup module is further configured to obtain a network address of the server after the terminal backs up the file to be backed up to the server to obtain the backup file, and associate the network address to the file to be backed up, where the terminal queries the backup file corresponding to the file to be backed up according to the network address.
Optionally, the allocation module is further configured to query a real-time state of the backup file at the server according to a preset period.
Optionally, the terminal queries the real-time state of the backup file in the server according to a preset period, including: the terminal accesses the network address in a ping mode and takes an access result as the real-time state, wherein the real-time state is that the backup file exists in the server when the access result is that the access is successful, and the real-time state is that the backup file does not exist in the server when the access result is that the access is failed.
Optionally, the allocation module is further configured to manage the file to be backed up according to the preset identifier after the terminal allocates the preset identifier to the file to be backed up located at the terminal, where a manner of managing the file to be backed up includes one of the following: deleting the file to be backed up; and editing the file to be backed up.
According to still another embodiment of the present invention, there is also provided a storage medium. The storage medium is arranged to store program code for performing the steps of:
the terminal backs up the file to be backed up to the server to obtain a backup file;
the terminal distributes preset identifiers for the files to be backed up, which are located in the local area of the terminal, wherein the preset identifiers are used for indicating that the files to be backed up are backed up to the server.
According to the invention, after the file is uploaded to the server, the terminal marks the file, and the file can be distinguished from other files stored by the terminal after the file has a specific mark, so that a reference basis is provided for a user when the file needs to be deleted or edited, the problem of inconvenient file management of the terminal is solved, and the terminal timely knows whether the file has network backup or not so as to facilitate management operation.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a block diagram of a hardware configuration of a mobile terminal for a method of backing up files according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of backing up files according to an embodiment of the present invention;
FIG. 3 is a block diagram of a multi-media file network backup data storage system in accordance with an alternative embodiment of the present invention;
FIG. 4 is a flow chart of a method for recording a terminal file backup in accordance with an alternative embodiment of the present invention;
Fig. 5 is a block diagram illustrating a structure of an apparatus for backing up files according to an embodiment of the present invention.
Detailed Description
The application will be described in detail hereinafter with reference to the drawings in conjunction with embodiments. It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
Example 1
The method embodiment provided in embodiment 1 of the present application may be executed in a mobile terminal, a computer terminal or a similar computing device. Taking the mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of a mobile terminal according to a method for backing up files according to an embodiment of the present application. As shown in fig. 1, the mobile terminal 10 may include one or more (only one is shown in the figure) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. It will be appreciated by those of ordinary skill in the art that the configuration shown in fig. 1 is merely illustrative and is not intended to limit the configuration of the electronic device described above. For example, the mobile terminal 10 may also include more or fewer components than shown in FIG. 1 or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store software programs and modules of application software, such as program instructions/modules corresponding to a method for backing up files in the embodiment of the present invention, and the processor 102 executes the software programs and modules stored in the memory 104 to perform various functional applications and data processing, i.e., implement the above-mentioned method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. The specific examples of networks described above may include wireless networks provided by the communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module for communicating with the internet wirelessly.
In this embodiment, a method for backing up files running on the mobile terminal is provided, and fig. 2 is a flowchart of a method for backing up files according to an embodiment of the present invention, as shown in fig. 2, where the flowchart includes the following steps:
step S202, a terminal backs up a file to be backed up to a server to obtain a backup file;
in step S204, the terminal allocates a preset identifier to the file to be backed up, where the preset identifier is used to indicate that the file to be backed up is backed up to the server.
Through the steps, the terminal backs up the file to be backed up to the server to obtain the backup file, and the terminal distributes a preset identifier for the file to be backed up which is positioned at the local position of the terminal, wherein the preset identifier is used for indicating that the file to be backed up is backed up to the server, so that the problem of inconvenient file management of the terminal is solved, and the terminal timely knows whether the file is backed up by the network or not so as to facilitate management operation. Optionally, after the terminal backs up the file to be backed up to the server to obtain the backed up file, the terminal obtains the network address of the server, generates the preset identifier according to the network address, and the generated preset identifier is different according to different servers, for example, uploading to a hundred-degree network disk is an identifier, and uploading to a QQ space is an identifier. Or a specific network address can be bound with the local file, and a user can directly log in a specific page of the server to read and write the backup file on the network.
Alternatively, the execution subject of the above steps may be a mobile terminal or the like, but is not limited thereto.
In an optional embodiment of the present invention, after a terminal backs up a file to be backed up to a server to obtain a backed up file, the terminal obtains a network address of the server, and associates the network address to the file to be backed up, where the terminal queries the backed up file corresponding to the file to be backed up according to the network address. Optionally, the terminal queries the real-time state of the backup file in the server according to a preset period. Optionally, the terminal accesses the network address in a ping manner, and takes the access result as the real-time state, wherein when the access result is that the access is successful, the real-time state is that the backup file exists in the server, and when the access result is that the access is failed, the real-time state is that the backup file does not exist in the server.
Optionally, after the terminal allocates a preset identifier to the file to be backed up located locally to the terminal, the terminal manages the file to be backed up according to the preset identifier, and the mode of managing the file to be backed up includes one of the following: deleting the file to be backed up; editing the file to be backed up. In this embodiment, a method for managing files by some specific terminals according to preset identifiers is described.
In an alternative embodiment of the present invention, when a user shoots a photo and video from other copy to local, the terminal system will enter relevant data of the multimedia file (the relevant data includes Identification (ID) database is automatically generated, name file Name, boolean variable pool type uploading network, local path, network path, update time, other information) and corresponding entries are established in the database.
When the user uploads the local multimedia file to the network, the terminal will extract the upload address to update to the network path field of the corresponding media file in the database. At the same time, a predefined mark is added to the local file, so that the user can obviously observe the difference from the file which is only stored locally. When a user clicks the mark added to the picture by the system, the system pops up detailed uploading information of the file, uploading backup time, path and uploaded network server name of the file. The application of the identification to the file can be realized by applying a general label or adding a plurality of labels with different identifications according to different uploading network ends, so that a user can intuitively observe the uploading destination end of the file.
The user deletes the photos which are not backed up to the network side, and the terminal prompts the user whether the photos need to be backed up or not. For the photos which are deleted locally by the user and are backed up at the network side and corresponding photo information, the related data are read out from the database, the related information is displayed in the data form of the HTM, the user can contact the data path corresponding to the pictures, and the multimedia files uploaded to the network side can be directly downloaded to the local.
In another special case, the user uploads the multimedia file to the network end and updates the file information, but the user may log on the network end to delete the file directly, the terminal needs to update the information that the file does not exist in the network end to the database at this time, the terminal periodically accesses the file uploading path in a ping mode, if the file uploading path can be ping-enabled, the default picture of the terminal exists, and if no data is returned, the terminal synchronizes the data to the database and the identification of the local file. The situation that a user uses the local file as a file and a network terminal exists is avoided, and the local file is deleted by mistake. The terminal is required to determine the detailed path of the file (the system development can obtain high system authority, log analysis or system service monitoring can be adopted to effectively obtain relevant information parameters) for the ping operation, and the condition that the network connection of the terminal is smooth at present, and the 2 conditions are required to be judged before the ping operation is carried out.
Corresponding to the method described in the above alternative embodiment, the present invention provides a system for storing user multimedia file network backup data, and fig. 3 is a block diagram of a system for storing multimedia file network backup data according to an alternative embodiment of the present invention, where the system includes the following modules as shown in fig. 3: the system comprises a multimedia file data input module, a multimedia file data management module, a multimedia file data update module, a multimedia file operation reminding module and a multimedia file data storage module, wherein the functions of the modules are recorded as follows:
Firstly, in the multimedia file information input module in fig. 3, the user creates (when shooting or copying the multimedia file, we need to create related data of the file, firstly, create a data table meeting the requirements of the embodiment, and the programming language is recorded as follows:
create table userinfo
(
id int primary key not null identity(1,1),
[name]char(100),
update bit DEFAULT 0,// upload network, 0 denotes NO,1 denotes YES
LocalPath char(200),
InternetPath VARCHAR[300],
UpdateTime DATETIME,
OtherInfo VARCHAR[500],
)
Through the programming language, when a user operating terminal creates a new multimedia file, the information input module detects the new multimedia file at the first time, integrates the information, screens out useful information corresponding to the data table, sorts the useful information and transmits the useful information to the multimedia file information data module.
The system uses FileObserver types under an android. Os package as a monitor for monitoring operations such as file access, creation, modification, deletion, movement and the like, and is based on INotify of linux. FileObserver is an abstract class that must be inherited to be used. Each FileObserver object listens to a single file or folder, and if a folder is monitored, changes to all files and cascaded subdirectories under the folder trigger a listening event.
The events that are listened to may include the following: ACCESS, i.e. files are accessed; modification, the file is modified; ATTRIB, file attributes are modified, such as chmod, chown, touch, etc.; close_write, writable file closed; close_ NOWRITE, the non-writable file is closed; OPEN, the file is OPEN; MOVED _FROM, the file is removed, such as mv; MOVED _TO, the file is moved, e.g., mv, cp; CREATE, CREATE a new file; DELETE, file deleted, e.g., rm; delete_self, i.e., an executable DELETEs itself when executing; move_self, i.e., an executable MOVEs itself when executing; CLOSE, file closed, equivalent to (in_close_write n_close_ NOWRITE); all_events, including ALL EVENTS above.
When a user creates (shoots or copies from other devices) a multimedia file, a create event is detected, the system extracts relevant file data at the first time, and the type MediaStore of extracting the multimedia file information is needed to be used as a multimedia database provided by an android system, and the multimedia information in the android can be extracted from the multimedia database. This MediaStore includes all information of the multimedia database, including audio, video and image, and android encapsulates all multimedia database interfaces, and all databases can be operated without creating themselves, directly calling ContentResolver to remove the interfaces encapsulated with them.
After the related information is extracted, the multimedia file information input module transmits key information corresponding to the creation form to the multimedia file information data module.
The main function of the multimedia file information data management module in fig. 3 is to receive the file key information from the multimedia file information input module and compare the file name, local path, update time and other descriptions.
After receiving the related information, the actions of adding (inserting data), deleting (deleting data) and searching (inquiring data) and changing (updating data) are performed. Parameters of the augmentation data are received, for example, from the multimedia file information entry module, the following being the programming language corresponding to the multimedia file information data management module:
Eg:
Insert into userinfo(name,update,LocalPath,InternetPath,Updatetime,OtherInfo)values("201603180801",0,"sdcard0/camera/","",now,"")
Third, the multimedia file information data storage module in fig. 3: and synchronizing data from the multimedia file information data storage module, storing the file information stored locally to a cloud designated by a user, preventing file data loss caused by local misoperation of the user, and in order to ensure the safety of database files, storing the file information data by adopting an encryption mode, and if the file information data storage module has new changes, pushing updated data to a network side according to the setting. When the file data information stored in the local village is deleted or other operations cause file data abnormality, the system can synchronize the latest file data from the network end to the local, and the disaster recovery capability of the file data is increased.
And fourthly, the file operation module in fig. 3 mainly records the file operation of a user, converts the operation action into data information and transmits the data information to the file data updating module. The module uses obvifile to detect that the file is modified or that the file is self-moving (uploading the internet). Eg, a user accesses a multimedia file by using a third party application, determines that the file is modified, accessed or self-moved by using obviousfile, obtains the life cycle of the currently running app.android by using the Android activities, provides a method for solving the problem, only needs to maintain a count in onStart and onStop of each Activity, if the value is greater than 0, the method indicates that the APP is running in the foreground and is equal to 0, and indicates that the APP is switched to the background. ACTIVITYMANAGER is an important part of the android framework, which is responsible for creating a new ACTIVITYTHREAD process, and using ACTIVITYMANAGER to obtain that each application of the running processes in the system runs in its independent process, but in order to save resources or to accomplish some co-operation, they may run in a process. For example, the following classes may be defined: activitymanager, runningappprocessinfo class, in which common fields of running process information are encapsulated:
int pid; defining process ID
Int uid; user ID where the// definition process is located
String processName; the default is the package name or specified by the android: process= "" attribute.
String [ ] pkgList; all application package names PACKAGEMANGER classes running under the process
Description: encapsulation of operations on application information
The method for obtaining the application program information is as follows:
public abstract ApplicationInfo getApplicationInfo(String packageName,int flags)
parameters: PACKAGENAME// package name of currently running program
Flags the ApplicationInfo is the flags label, and a constant of 0 can be directly given
The functions are as follows: returning ApplicationInfo objects
After all running process information is acquired by ACTIVITYMANAGER, that is, the package names of the running application programs in each process are acquired (pkgname), the method provided by the packagediananager class is directly called through the package names (pkgname), so that the information of the application programs can be acquired. The method comprises the steps of obtaining the name of the currently running app, counting the traffic use condition of the third-party program, obtaining the path uploaded by the current file through keyword searching aiming at log or monitoring at a system level, transmitting the provided file information to a file updating module, and adding the identifier which is backed up to a network side on the local file.
The file is marked, if the user uploads the local file to the network end, a universal mark can be added, but if the user uploads the same file to a plurality of network ends, the fact that only one universal mark is added in the optional embodiment is obvious is not obvious, the system recorded in the optional embodiment also supports the adoption of a plurality of different labels, and if the user uploads different network ends aiming at the same multimedia file, the technical aspect is easy to realize.
Fifthly, the file data updating module in fig. 3 is configured to receive the file information parameters from the file data module, generate a data standard statement format, and update the file information database. Eg. Receiving file parameters from the file operation module, the file 20160327001updatretime2016-3-27-10-40-36path: ***. Pan, the module will transfer these parameters to the multimedia file data information storage module in standard format (), execute standard statement, update file data information. The following are standard statements in the programming language:
Eg:
The user updates the relevant information of the file, such as the user moves the local file to another file path, executing statement update userinfo set LocalPath = "newpath" WHERE FILENAME = "20160327001";
The user views 20160327001 the file backup information, executing statement SELECT INTERNETPATH from userinfo WHERE FILENAME = "0160327001";
Of course, the user can forcedly delete all relevant data information of a local file, which requires caution, delete file 20160327001 and all data information, execute statement delete from userinfo WHERE FILENAME = "20160327001";
sixth, the file operation reminding module in fig. 3 detects that the user backs up the file to the network, searches that the file path is not empty, and reminds the user whether the file is backed up at a certain network end or not. The user selects confirmation, the prompt disappears, and the user cannot repeatedly backup. Detecting that the user deletes the local file can query the user filepath for the empty file, can remind the user whether the file is not backed up or not, and can confirm whether the deletion is performed. The safety of user operation is ensured.
Through the scheme recorded in the embodiment, the user using the scheme can manage the relevant data that the user backs up the local multimedia file to different network ends in a certain range, so that the situation that the user uploads and backs up the file to different systems to sink into the puddle of the data and cannot be clearly combed is avoided. The system can collect key data for storing or updating by the user for the operation of the multimedia file, and ensures that the stored file information is the latest state of the user file. The system stores the latest data information of the multimedia file, does not store the local multimedia file, avoids the need of infinitely expanding a server, and can provide high-quality service for users.
The invention has the technical premise that when a user performs operations such as photographing, shooting, copy and the like, the information of the files is input into a data system, and when the user performs network uploading on the multimedia files, the user can catch the operation actions of the user on the files, obtain a target network end uploaded by the user, and update the data information to a file data management system. Through the system, the user can clearly grasp the storage condition of the multimedia file.
The flow of the invention is as follows:
Fig. 4 is a flowchart of a method for recording a terminal file backup situation according to an alternative embodiment of the present invention, as shown in fig. 4, the steps are as follows:
in step S401, the user generates a new multimedia file by photographing/shooting/copy or other operation.
Step S402, the operation of step S401 is detected, and the generated multimedia file information (name/local path/size/shooting location, etc.) is stored.
Step S403, determining whether the current user uses the third party app to access the local multimedia file, and uploading the local multimedia file to the web server.
In step S404, the user performs the operation in step S403 to update the data information of the multimedia file to the local database, and when the user performs the network backup, the backup time and the data update of the backup path are mainly updated.
Step S405, after the local file data information is updated, a new network backup identifier is added to the local multimedia file, and the new data information is pushed to the network end, so that the timeliness of network data measurement and the consistency of the local data are ensured.
In step S406, the user does not synchronize the data of the network server, and determines whether the user performs operations such as deletion/movement/modification on the network or the locally stored multimedia file locally. If so, the process continues to step S404.
Step S407, step S406 the user does not perform the local file operation, and ends
The optional embodiment of the invention provides a method for uniformly recording user file backup process data, which is embodied in local file identifiers or local data, and in order to prevent the backup data from being lost locally, the latest data is updated to the cloud in a fixed period.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
Example 2
The embodiment also provides a device for backing up files, which is used for implementing the above embodiment and the preferred implementation, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
FIG. 5 is a block diagram illustrating a structure of an apparatus for backing up files according to an embodiment of the present invention, as shown in FIG. 5, the apparatus including:
The backup module 52 is configured to backup the file to be backed up to the server to obtain a backup file;
The allocation module 54 is connected to the backup module 52, and is configured to allocate a preset identifier to the file to be backed up, where the preset identifier is used to indicate that the file to be backed up has been backed up to the server.
Optionally, the backup module 52 is further configured to, after the terminal backs up the file to be backed up to the server to obtain the backed up file, obtain the network address of the server, and generate the preset identifier according to the network address.
Optionally, the backup module 52 is further configured to obtain a network address of the server after the terminal backs up the file to be backed up to the server to obtain the backup file, and associate the network address to the file to be backed up, where the terminal queries the backup file corresponding to the file to be backed up according to the network address.
Optionally, the allocation module 54 is further configured to query the real-time status of the backup file at the server according to a preset period.
Optionally, the terminal queries the real-time state of the backup file in the server according to a preset period, accesses the network address in a ping manner, and takes the access result as the real-time state, wherein when the access result is that the access is successful, the real-time state is that the backup file exists in the server, and when the access result is that the access is failed, the real-time state is that the backup file does not exist in the server.
Optionally, the allocation module 54 is further configured to, after the terminal allocates a preset identifier to the file to be backed up located locally on the terminal, manage the file to be backed up according to the preset identifier, where a manner of managing the file to be backed up includes one of the following: deleting the file to be backed up; editing the file to be backed up.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; or the above modules may be located in different processors in any combination.
Example 3
The embodiment of the invention also provides a storage medium. Alternatively, in the present embodiment, the above-described storage medium may be configured to store program code for performing the steps of:
S1, a terminal backs up a file to be backed up to a server to obtain a backup file;
S2, the terminal distributes a preset identifier for the file to be backed up, which is located at the local of the terminal, wherein the preset identifier is used for indicating that the file to be backed up is backed up to the server.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Optionally, in this embodiment, the processor performs the method steps described in the above embodiment according to the program code stored in the storage medium.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. 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 of backing up files, comprising:
the terminal backs up the file to be backed up to the server to obtain a backup file;
The terminal distributes a preset identifier for the file to be backed up, which is positioned at the local position of the terminal, and displays the preset identifier on the file to be backed up, which is positioned at the local position of the terminal, wherein the preset identifier is used for indicating that the file to be backed up is backed up to the server;
The terminal accesses the network address associated with the file to be backed up in a ping mode according to a preset period, takes the access result as the real-time state of the backup file in the server, and deletes the preset identification when the real-time state is that the backup file does not exist in the server.
2. The method of claim 1, wherein after the terminal backs up the file to be backed up to the server to obtain the backed up file, the method further comprises:
The terminal obtains the network address of the server and generates the preset identification according to the network address.
3. The method of claim 1, wherein after the terminal backs up the file to be backed up to the server to obtain the backed up file, the method further comprises:
The terminal obtains the network address of the server and associates the network address with the file to be backed up, wherein the terminal inquires the backup file corresponding to the file to be backed up according to the network address.
4. The method of claim 1, wherein the real-time status is that the backup file is present in the server when the access result is an access success, and wherein the real-time status is that the backup file is not present in the server when the access result is an access failure.
5. The method according to claim 1, wherein after the terminal allocates a preset identifier to the file to be backed up, the terminal manages the file to be backed up according to the preset identifier, and the manner of managing the file to be backed up includes one of:
deleting the file to be backed up; and editing the file to be backed up.
6. An apparatus for backing up files, applied to a terminal, is characterized by comprising:
the backup module is used for backing up the files to be backed up to the server to obtain backup files;
The distribution module is used for distributing preset identifiers to the files to be backed up located at the local position of the terminal, and displaying the preset identifiers to the files to be backed up located at the local position of the terminal, wherein the preset identifiers are used for indicating that the files to be backed up are backed up to the server;
The distribution module is further configured to access a network address associated with the file to be backed up in a ping manner according to a preset period, and use an access result as a real-time state of the backup file in the server, where the real-time state is that the backup file does not exist in the server, and delete the preset identifier.
7. The apparatus of claim 6, wherein the backup module is further configured to, after the terminal backs up the file to be backed up to the server to obtain the backup file, obtain a network address of the server, and generate the preset identifier according to the network address.
8. The apparatus of claim 6, wherein the backup module is further configured to obtain a network address of a server after the terminal backs up the file to be backed up to the server to obtain the backup file, and associate the network address to the file to be backed up, wherein the terminal queries the backup file corresponding to the file to be backed up according to the network address.
9. The apparatus of claim 6, wherein the real-time status is that the backup file is present in the server when the access result is an access success, and wherein the real-time status is that the backup file is not present in the server when the access result is an access failure.
10. The apparatus of claim 6, wherein the allocation module is further configured to, after the terminal allocates a preset identifier to the file to be backed up located locally on the terminal, manage the file to be backed up according to the preset identifier, where a manner of managing the file to be backed up includes one of:
deleting the file to be backed up; and editing the file to be backed up.
CN201610513636.5A 2016-07-01 2016-07-01 File backup method and device Active CN107562568B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201610513636.5A CN107562568B (en) 2016-07-01 2016-07-01 File backup method and device
CN202410357126.8A CN118051385A (en) 2016-07-01 2016-07-01 File management method and device
PCT/CN2016/093959 WO2018000524A1 (en) 2016-07-01 2016-08-08 Backup file method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610513636.5A CN107562568B (en) 2016-07-01 2016-07-01 File backup method and device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202410357126.8A Division CN118051385A (en) 2016-07-01 2016-07-01 File management method and device

Publications (2)

Publication Number Publication Date
CN107562568A CN107562568A (en) 2018-01-09
CN107562568B true CN107562568B (en) 2024-04-26

Family

ID=60785732

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201610513636.5A Active CN107562568B (en) 2016-07-01 2016-07-01 File backup method and device
CN202410357126.8A Pending CN118051385A (en) 2016-07-01 2016-07-01 File management method and device

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202410357126.8A Pending CN118051385A (en) 2016-07-01 2016-07-01 File management method and device

Country Status (2)

Country Link
CN (2) CN107562568B (en)
WO (1) WO2018000524A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107809535A (en) * 2017-10-30 2018-03-16 努比亚技术有限公司 A kind of information processing method, mobile terminal and computer-readable storage medium
CN108833684A (en) * 2018-05-28 2018-11-16 维沃移动通信有限公司 A kind of information cuing method and terminal device
CN111382004B (en) * 2018-12-27 2024-03-15 西安诺瓦星云科技股份有限公司 Parameter backup method and device, parameter restoration method and device and backup restoration system
CN113032330A (en) * 2019-12-09 2021-06-25 西安诺瓦星云科技股份有限公司 File supervision method and device and multimedia broadcast control equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988535A (en) * 2005-12-23 2007-06-27 腾讯科技(深圳)有限公司 Synchronous method, system for file storage and customer terminal
CN103377208A (en) * 2012-04-19 2013-10-30 北京智慧风云科技有限公司 Method for updating files in cloud service file management system
CN104331343A (en) * 2014-11-06 2015-02-04 深圳市中兴移动通信有限公司 File backup method and system
CN105119995A (en) * 2015-08-27 2015-12-02 北京恒华伟业科技股份有限公司 File cloud saving method, terminal equipment and backup server

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7519634B2 (en) * 2006-12-04 2009-04-14 International Business Machines Corporation System and method for preserving memory resources during data backup
CN103514064B (en) * 2012-06-28 2016-03-16 国际商业机器公司 The method and apparatus of record backup information
CN103605800A (en) * 2013-12-06 2014-02-26 贝壳网际(北京)安全技术有限公司 File processing method and file processing system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988535A (en) * 2005-12-23 2007-06-27 腾讯科技(深圳)有限公司 Synchronous method, system for file storage and customer terminal
CN103377208A (en) * 2012-04-19 2013-10-30 北京智慧风云科技有限公司 Method for updating files in cloud service file management system
CN104331343A (en) * 2014-11-06 2015-02-04 深圳市中兴移动通信有限公司 File backup method and system
CN105119995A (en) * 2015-08-27 2015-12-02 北京恒华伟业科技股份有限公司 File cloud saving method, terminal equipment and backup server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
查找备份文件恢复用路径及恢复技巧;彭禾;《微型机与应用》;19930907(第09期);全文 *

Also Published As

Publication number Publication date
CN118051385A (en) 2024-05-17
WO2018000524A1 (en) 2018-01-04
CN107562568A (en) 2018-01-09

Similar Documents

Publication Publication Date Title
CN107562568B (en) File backup method and device
CN110196755B (en) Virtual machine snapshot management method and device, server and storage medium
US10212054B2 (en) Transparently tracking provenance information in distributed data systems
US20170249328A1 (en) A Method, Cloud Synchronization Function Means and File System for Handling Files and Directories in a Cloud Storage Service
JP2004227359A (en) Operation management method for storage system based on policy
CN107741852B (en) Service deployment method based on cluster software
JP2016505926A (en) APP MANAGEMENT METHOD, DEVICE, SERVER, TERMINAL DEVICE, PROGRAM, AND RECORDING MEDIUM
US20140237024A1 (en) Network communication devices and file tracking methods thereof
CN112506870B (en) Data warehouse increment updating method and device and computer equipment
CN109857723B (en) Dynamic data migration method based on expandable database cluster and related equipment
US20130325932A1 (en) Electronic device and method for storing distributed documents
CN103885865A (en) Method and device for managing sensors
US10984444B2 (en) Systems and methods for generating intelligent account reconfiguration offers
CN110958287B (en) Operation object data synchronization method, device and system
CN109213955B (en) Data processing method and related equipment
WO2017140154A1 (en) Method and system for security information management based on intelligent platform
EP4162649B1 (en) Stable references for network function life cycle management automation
WO2021076290A1 (en) Bi-directional data sync between a client device and an application server
CN111966533A (en) Electronic file management method and device, computer equipment and storage medium
TWI531910B (en) Data management method, computer program product and managing server
CN112596752B (en) Internet of things method and system for electronic evidence obtaining equipment
CN111953580B (en) Method, device and storage medium for sending and acquiring session
US20230099545A1 (en) Iot system and data collection control method
WO2024078211A1 (en) Backup method for service cluster instance, recovery method for service cluster instance, and related device
JP6565265B2 (en) Content management control method, system, communication terminal, server device, and program

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