WO2018076872A1 - 数据备份方法、装置、存储介质及服务器 - Google Patents

数据备份方法、装置、存储介质及服务器 Download PDF

Info

Publication number
WO2018076872A1
WO2018076872A1 PCT/CN2017/095690 CN2017095690W WO2018076872A1 WO 2018076872 A1 WO2018076872 A1 WO 2018076872A1 CN 2017095690 W CN2017095690 W CN 2017095690W WO 2018076872 A1 WO2018076872 A1 WO 2018076872A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
backup
storage area
storage capacity
backed
Prior art date
Application number
PCT/CN2017/095690
Other languages
English (en)
French (fr)
Inventor
马志峰
Original Assignee
广东欧珀移动通信有限公司
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 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2018076872A1 publication Critical patent/WO2018076872A1/zh

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
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/06Addressing a physical block of locations, e.g. base addressing, module addressing, memory dedication
    • G06F12/0646Configuration or reconfiguration

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a data backup method, a device storage medium, and a server.
  • the cloud server uses the updated technology part to solve the time lag problem of resource allocation, and now it can stably allocate computing resources in a few minutes.
  • the cloud service is a hardware resource intensification, and then split and lease, which can dynamically allocate computing resources.
  • the processing speed of the peak period can be effectively solved when the total capacity of the platform can be accepted and the application software can be optimized according to the change of hardware resources.
  • the embodiment of the invention provides a data backup method, device, storage medium and server, which can improve the efficiency of data backup.
  • an embodiment of the present invention provides a data backup method, including:
  • an embodiment of the present invention provides a data backup apparatus, including:
  • a receiving module configured to receive a backup request sent by the terminal, where the backup request indicates data to be backed up
  • a determining module configured to determine, according to the backup request, whether an available storage capacity corresponding to the backup storage area is smaller than a storage capacity required for the data to be backed up;
  • a processing module configured to expand an available storage capacity corresponding to the backup storage area when the determining module determines to be YES;
  • a backup module configured to back up the data to be backed up to the backup storage area.
  • an embodiment of the present invention further provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by a processor to execute the data backup method.
  • an embodiment of the present invention further provides a server, including a processor, a memory, the processor is electrically connected to the memory, the memory is used to store instructions and data, and the processor is configured to execute the following step:
  • the embodiment of the invention provides a data backup method, device, storage medium and server, which can improve the efficiency of data backup.
  • FIG. 1 is a schematic flowchart of a data backup method according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a scenario of a data backup system according to an embodiment of the present invention.
  • FIG. 3 is another schematic flowchart of a data backup method according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a data backup apparatus according to an embodiment of the present invention.
  • FIG. 5 is another schematic structural diagram of a data backup apparatus according to an embodiment of the present invention.
  • FIG. 6 is still another schematic structural diagram of a data backup apparatus according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • the embodiment of the invention provides a data backup method, device, storage medium and server. The details will be described separately below.
  • a data backup method including:
  • the step of determining, according to the backup request, whether the available storage capacity corresponding to the backup storage area is smaller than the storage capacity required for the data to be backed up includes:
  • the step of determining, according to the backup request, whether the available storage capacity corresponding to the backup storage area is smaller than the storage capacity required for the data to be backed up includes:
  • the step of expanding the available storage capacity corresponding to the backup storage area includes:
  • the corresponding data in the backup storage area is deleted to expand the available storage capacity corresponding to the backup storage area.
  • the method before receiving the backup request sent by the terminal, the method further includes:
  • the step of deleting corresponding data in the backup storage area includes:
  • the corresponding data in the backup storage area is deleted according to the level of the important level.
  • the step of deleting corresponding data in the backup storage area includes:
  • the method before receiving the backup request sent by the terminal, the method further includes:
  • the data backup device can be integrated in the server.
  • the data backup method can be as follows:
  • the preset time period can be set by a person skilled in the art or a server maintenance person.
  • the preset time period can be set to 7:00-23:00.
  • the method in this embodiment may further include the process of logging in the target backup account, as follows:
  • the terminal Receiving an account login request sent by the terminal, the account login request carrying the target backup account and its corresponding authentication information; performing authentication information verification according to the account login request, and returning login response information to the terminal according to the verification result, so that the terminal according to the The login response information is logged in to the target backup account.
  • the terminal may obtain the backup account and the corresponding authentication information, and then the server receiving terminal sends an account login request according to the target backup account and the corresponding authentication information, and returns the login target backup account to the terminal after the authentication succeeds. Response information.
  • the method for obtaining the backup account and the authentication information may be various.
  • the user may input the backup account and the corresponding authentication information input by the user, or may be automatically obtained.
  • the backup account and authentication information can be automatically obtained from the terminal local storage or the server.
  • the manner in which the terminal sends the backup request may be multiple. For example, after successfully logging in to the target backup account, click to enter the menu drop-down list, select "File Upload” in the directory to jump to the terminal.
  • File interface the file interface can display all the data allowed in the terminal, such as pictures, videos, and so on.
  • click the backup control such as the button for "confirm upload"
  • the terminal and the server can communicate through a data network, a wireless network, or the like.
  • the method for determining whether the available storage capacity is less than the required storage capacity may be multiple.
  • the required storage capacity may be determined according to the data amount of the data to be backed up, and then the required storage capacity is in the backup storage area. Comparing with the available storage capacity; that is, the step of "determining whether the available storage capacity corresponding to the backup storage area is smaller than the storage capacity required for the data to be backed up according to the backup request" may include:
  • the backup request may carry the data volume information of the data to be backed up, and the server may obtain the data volume of the data to be backed up according to the data volume information.
  • the amount of data of the data to be backed up can be directly calculated.
  • the amount of data that can be stored in the available storage capacity corresponding to the backup storage area can be determined, and then the amount of data that can be stored is compared with the obtained first data amount to determine whether the available storage capacity corresponding to the backup storage area is smaller than
  • the storage capacity required for the data to be backed up that is, the step "determining whether the available storage capacity corresponding to the backup storage area is smaller than the storage capacity required for the data to be backed up according to the backup request" may be as follows:
  • the amount of data that can be stored is the maximum amount of data that can be stored by the available storage capacity corresponding to the backup storage area.
  • the total storage capacity of the backup storage area may be expanded by some free channels.
  • this method is relatively rare.
  • the method may further include:
  • step "Delete the corresponding data in the backup storage area" can be:
  • an area may be divided from the backup storage area for storing non-deletable data (such as photos, diaries, etc.).
  • non-deletable data such as photos, diaries, etc.
  • different important levels can be set according to the data type, for example, the music class data can be set to a level of importance, the application class data set to a level of importance, and so on.
  • data is deleted it can be deleted from the data of the level of importance.
  • the available storage capacity of the corresponding capacity may be expanded according to the storage capacity required for the data to be backed up; that is, the step “delete the corresponding data in the backup storage area”.
  • the specific process can be as follows:
  • the data of the corresponding data amount is deleted from the backup storage area according to the second data amount.
  • the data amount of the data amount such as the second data amount may be deleted, and the storage data to be backed up may be stored as much as possible.
  • the retained data is not deleted.
  • the terminal may send indication information indicating that the backup is allowed, so that the terminal can return the data to be backed up according to the indication information, and then store the received data to be backed up to Back up the storage area to complete the backup of the data.
  • the prompt information of the successful backup may be sent to the terminal to avoid the user waiting.
  • the embodiment of the present invention provides a data backup method, by receiving a backup request sent by the terminal, the backup request indicating the data to be backed up, and then determining, according to the backup request, whether the available storage capacity corresponding to the backup storage area is smaller than the backup request.
  • the storage capacity required for the data if yes, expand the available storage capacity corresponding to the backup storage area, and then back up the data to be backed up to the backup storage area.
  • the solution can expand the available storage capacity to backup the data to be backed up when the available storage capacity of the backup storage area is insufficient, thereby improving the efficiency of data backup, reducing resource waste, and saving costs.
  • a data backup system which mainly includes a server and a terminal.
  • the terminal may specifically be a tablet computer or a mobile phone.
  • the server and the terminal can be connected through a wired or wireless network.
  • FIG. 2 is a schematic structural diagram of a data backup system according to the embodiment.
  • the data backup device is specifically integrated in the server 202, and is mainly used to receive a backup request sent by the terminal 201, where the backup request indicates that the backup is to be backed up. And determining, according to the backup request, whether the available storage capacity corresponding to the backup storage area is smaller than the storage capacity required for the data to be backed up, and if yes, expanding the available storage capacity corresponding to the backup storage area, and then sending the indication information allowing the backup to the terminal 201. And then back up the data to be backed up to the backup storage area.
  • the data backup system may further include a terminal 201, which may send a backup request to the server 202, and may send the data to be backed up to the server 202.
  • another data backup method is also provided. As shown in FIG. 3, the process may be as follows:
  • the terminal sends a backup request to the server, where the backup request indicates data to be backed up.
  • the method in this embodiment may further include the process of logging in to the target backup account, as follows:
  • the backup account and its corresponding authentication information may be obtained, and then the account login request is sent to the cloud server according to the target backup account and the corresponding authentication information.
  • the method for obtaining the backup account and the authentication information may be various.
  • the user may input the backup account and the corresponding authentication information input by the user, or may be automatically obtained, for example, may be locally stored from the terminal.
  • the server automatically obtains the backup account and authentication information.
  • the backup request may be triggered by the user's operation, or may be triggered by the system.
  • the system For example, after successfully logging in to the target backup account, click to enter the menu drop-down list, and select “File Upload” in the directory to jump to the optional file interface in the terminal.
  • the file interface can display all the data allowed in the terminal. Such as pictures, videos, etc.
  • click the backup control (such as the "confirm upload” button), through which the terminal triggers the terminal to send a backup request to the server.
  • the backup request may carry an account identifier (such as an account identification code) of the backup account of the terminal.
  • the medium for sending a backup request to the server may be various.
  • a backup request may be sent to the server through a data network, a wireless network, or the like.
  • the server determines, according to the backup request, whether the available storage capacity corresponding to the backup storage area is smaller than the storage capacity required for the data to be backed up; if yes, go to step 303; if no, go to step 306.
  • the method for determining whether the available storage capacity is less than the required storage capacity may be multiple.
  • the required storage capacity may be determined according to the data amount of the data to be backed up, and then the required storage capacity is in the backup storage area. Comparing with the available storage capacity; that is, the step of "determining whether the available storage capacity corresponding to the backup storage area is smaller than the storage capacity required for the data to be backed up according to the backup request" may include:
  • the backup request may carry the data volume information of the data to be backed up, and the server may obtain the data volume of the data to be backed up according to the data volume information.
  • the amount of data of the data to be backed up can be directly calculated.
  • the server deletes corresponding data in the backup storage area to expand the available storage capacity corresponding to the backup storage area.
  • the method may further include:
  • step "Delete the corresponding data in the backup storage area" can be:
  • an area may be divided from the backup storage area for storing non-deletable data (such as photos, diaries, etc.).
  • non-deletable data such as photos, diaries, etc.
  • different important levels can be set according to the data type, for example, the music class data can be set to a level of importance, the application class data set to a level of importance, and so on.
  • data is deleted it can be deleted from the data of the level of importance.
  • the available storage capacity of the corresponding capacity may be expanded according to the storage capacity required for the data to be backed up; that is, the step “expanding the available storage capacity corresponding to the backup storage area” ", the specific process can be as follows:
  • the data of the corresponding data amount is deleted from the backup storage area according to the second data amount.
  • the data amount of the data amount such as the second data amount may be deleted, and the storage data to be backed up may be stored as much as possible.
  • the retained data is not deleted.
  • the stored data whose data amount is greater than the second data amount may also be deleted from the backup storage area.
  • the server determines whether the available storage capacity corresponding to the current backup storage area is smaller than the storage capacity required for the data to be backed up; if yes, go to step 303; if no, go to step 305.
  • the server may determine whether the available storage capacity corresponding to the current backup storage area is sufficient for storing the data to be backed up. For the method of judging, please refer to step 302 above, and details are not described herein again.
  • the server sends, to the terminal, indication information that allows backup.
  • the server may send indication information indicating that the backup is allowed to the terminal.
  • the terminal sends the data to be backed up to the server according to the indication information.
  • the terminal may trigger a backup instruction, and the terminal may send, to the server, the data to be backed up that needs to be backed up according to the backup instruction.
  • the data to be backed up may be sent to the server through a data network, a wireless network, or the like.
  • the server receives the data to be backed back by the terminal, and stores the data to be backed up to the backup storage area.
  • the server may send the prompt information of the successful backup to the terminal to avoid the user waiting.
  • the prompt information may be displayed on the terminal display screen in the form of a pop-up window or a dialog box.
  • the word “completed backup” may be displayed on the backup application interface in the form of a pop-up window.
  • the embodiment of the present invention provides a data backup method, in which a terminal sends a backup request to a server, where the backup request indicates data to be backed up, and then the server determines, according to the backup request, whether the available storage capacity corresponding to the backup storage area is sufficient.
  • the data to be backed up is stored, and if not, the data in the backup storage area is deleted until there is enough storage space to store the data to be backed up, so that the data to be backed up is backed up to the backup storage area.
  • the solution can expand the available storage capacity to backup the data to be backed up when the available storage capacity of the backup storage area is insufficient, thereby improving the efficiency of data backup, reducing resource waste, and saving costs.
  • a data backup device comprising:
  • a receiving module configured to receive a backup request sent by the terminal, where the backup request indicates data to be backed up
  • a determining module configured to determine, according to the backup request, whether an available storage capacity corresponding to the backup storage area is smaller than a storage capacity required for the data to be backed up;
  • a processing module configured to expand an available storage capacity corresponding to the backup storage area when the determining module determines to be YES;
  • a backup module configured to back up the data to be backed up to the backup storage area.
  • the determining module is configured to:
  • the processing module is configured to delete corresponding data in the backup storage area to expand an available storage capacity corresponding to the backup storage area.
  • the apparatus further includes:
  • a determining module configured to determine a data type of the stored data in the backup storage area before receiving the backup request sent by the terminal
  • a setting module configured to set an important level of the stored data based on the data type
  • the processing module is specifically configured to delete corresponding data in the backup storage area according to the level of the important level.
  • the processing module includes:
  • Obtaining a submodule configured to obtain a capacity difference between the storage capacity and the available storage capacity
  • Determining a submodule configured to determine, according to the capacity difference, a second amount of data corresponding to the storable data
  • And deleting the submodule configured to delete data of the corresponding data amount from the backup storage area according to the second amount of data.
  • a data backup device is also provided, which can be integrated in a server.
  • the data backup apparatus 400 can include a receiving module 401, a determining module 402, a processing module 403, and a backup module 404, where:
  • the receiving module 401 is configured to receive a backup request sent by the terminal, where the backup request indicates data to be backed up;
  • the determining module 402 is configured to determine, according to the backup request, whether the available storage capacity corresponding to the backup storage area is smaller than the storage capacity required for the data to be backed up;
  • the processing module 403 is configured to expand the available storage capacity corresponding to the backup storage area when the determining module determines to be YES;
  • the backup module 404 is configured to back up data to be backed up to the backup storage area.
  • the determining module 402 can be used to:
  • the processing module 403 can be configured to delete corresponding data in the backup storage area to expand the available storage capacity corresponding to the backup storage area.
  • the apparatus 400 may further include:
  • a determining module 405, configured to determine a data type of the stored data in the backup storage area before receiving the backup request sent by the terminal;
  • a setting module 406 configured to set an important level of the stored data based on the data type
  • the processing module 403 can be specifically configured to delete corresponding data in the backup storage area according to the level of the important level.
  • the processing module 403 may include: an obtaining submodule 4031, a determining submodule 4032, and a deleting submodule 4033, as follows:
  • the obtaining submodule 4031 is configured to obtain a capacity difference between the storage capacity and the available storage capacity
  • a determining submodule 4032 configured to determine, according to the capacity difference, a second amount of data corresponding to the storable data
  • the deleting submodule 4033 is configured to delete data of the corresponding data amount from the backup storage area according to the second data amount.
  • the embodiment of the present invention provides a data backup device, which receives a backup request sent by a terminal, the backup request indicates data to be backed up, and then determines, according to the backup request, whether the available storage capacity corresponding to the backup storage area is smaller than to be backed up.
  • the storage capacity required for the data if yes, expand the available storage capacity corresponding to the backup storage area, and then back up the data to be backed up to the backup storage area.
  • the solution can expand the available storage capacity to back up the data to be backed up when the available storage capacity of the backup storage area is insufficient, thereby improving the efficiency of data backup and reducing the waste of resources.
  • a preferred embodiment also provides a data backup system, including a server and a terminal.
  • the server may include any of the data backup devices mentioned above, and the terminal may be a mobile phone, a tablet, or the like.
  • a server is also provided.
  • the server 500 can include one or more processors 501 of processing cores, a memory 502 of one or more computer readable storage media, a communication unit 503, a power source 504, an input unit 505, and a display unit 506.
  • processors 501 of processing cores the server 500 can include one or more processors 501 of processing cores, a memory 502 of one or more computer readable storage media, a communication unit 503, a power source 504, an input unit 505, and a display unit 506.
  • the server structure illustrated in FIG. 7 does not constitute a limitation to the server, and may include more or fewer components than those illustrated, or some components may be combined, or different component arrangements. among them:
  • the processor 501 is the control center of the server 500, connecting various portions of the entire server 500 using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 502, and recalling stored in the memory 502.
  • the data, various functions of the server 500 and processing data are performed to thereby perform overall monitoring of the server 500.
  • the processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 501.
  • Memory 502 can be used to store software programs as well as modules.
  • the processor 501 executes various functional applications and data processing by running software programs and modules stored in the memory 502.
  • the communication unit 503 can be used for receiving and transmitting signals during transceiving information.
  • the communication unit 503 receives signals transmitted by the terminal and hands the signals to one or more processors 501 for processing.
  • the communication unit 503 transmits the feedback signal sent by the processor 501 to the terminal.
  • Server 500 also includes a power source 504 (such as a battery) that powers various components.
  • the power source can be logically connected to the processor 501 through the power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the power supply 504 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the server 500 can also include an input unit 505 that can be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • an input unit 505 can be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • the server 500 can also include a display unit 506 that can be used to display information entered by the user or information provided to the user and various graphical user interfaces of the server 500, which can be graphical, textual, iconic, Video and any combination of them.
  • the display unit 508 can include a display panel, and optionally, a liquid crystal display (LCD, Liquid) can be used.
  • LCD liquid crystal display
  • a display panel is configured in the form of a Crystal Display or an Organic Light-Emitting Diode (OLED).
  • the processor 501 in the server 500 loads the executable file corresponding to the process of one or more applications into the memory 502 according to the following instructions, and is stored and stored by the processor 501.
  • the backup request indicating the data to be backed up, and then determining, according to the backup request, whether the available storage capacity corresponding to the backup storage area is smaller than the storage capacity required for the data to be backed up, and if so, expanding the available storage area corresponding to the backup storage area Storage capacity, and then back up the data to be backed up to the backup storage area.
  • processor 501 performs the following steps:
  • processor 501 performs the following steps:
  • the processor 501 performs the steps of deleting corresponding data in the backup storage area to expand the available storage capacity corresponding to the backup storage area.
  • the processor 501 before receiving the backup request sent by the terminal, performs the following steps:
  • the steps of deleting the corresponding data in the backup storage area include:
  • the processor 501 performs the steps of: obtaining a capacity difference between the storage capacity and the available storage capacity;
  • Data of the corresponding data amount is deleted from the backup storage area according to the second amount of data.
  • the processor 501 prior to receiving the backup request sent by the terminal, performs the following steps:
  • the login response information is returned to the terminal according to the verification result, so that the terminal logs in to the target backup account according to the login response information.
  • the embodiment of the present invention provides a server that receives a backup request sent by a terminal, the backup request indicates data to be backed up, and then determines, according to the backup request, whether the available storage capacity corresponding to the backup storage area is smaller than the backup to be backed up.
  • the storage capacity required for the data if yes, expand the available storage capacity corresponding to the backup storage area, and then back up the data to be backed up to the backup storage area; this solution can expand the available storage capacity when the available storage capacity of the backup storage area is insufficient.
  • Backing up data to be backed up improves the efficiency of data backup and reduces the waste of resources.
  • Embodiments of the present invention also provide a storage medium having a plurality of instructions stored therein, the instructions being adapted to be loaded by a processor to perform any of the above data backup methods.
  • the program may be stored in a computer readable storage medium, and the storage medium may include: Read only memory (ROM, Read Only Memory), Random Access Memory (RAM), disk or CD.
  • ROM Read only memory
  • RAM Random Access Memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明公开了一种数据备份方法,包括:接收终端发送的备份请求,该备份请求指示待备份数据,然后,根据备份请求判断备份存储区对应的可用存储容量是否小于待备份数据所需的存储容量,若是,则扩大备份存储区对应的可用存储容量,再将待备份数据备份至备份存储区。本发明还涉及一种数据备份装置、存储介质及服务器。

Description

数据备份方法、装置、存储介质及服务器
本申请要求于2016年10月25日提交中国专利局、申请号为201610939198.9、发明名称为“一种数据备份方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及通信技术领域,尤其涉及一种数据备份方法、装置存储介质及服务器。
背景技术
云服务器采用了更新的技术部分解决了资源分配的时滞问题,现在可以稳定的在数分钟内分配好计算资源。云服务是硬件资源集约化,然后进行分割出租,能够动态调配计算资源,在平台总容量可以接纳、应用软件可以根据硬件资源的变化进行相应的优化的情况下能够有效解决高峰时期的处理速度。
技术问题
本发明实施例提供一种数据备份方法、装置、存储介质及服务器,可以提升数据备份的效率。
技术解决方案
第一方面,本发明实施例提供一种数据备份方法,包括:
接收终端发送的备份请求,所述备份请求指示待备份数据;
根据所述备份请求判断备份存储区对应的可用存储容量是否小于所述待备份数据所需的存储容量;
若是,则扩大所述备份存储区对应的可用存储容量;
将所述待备份数据备份至所述备份存储区。
第二方面 ,本发明实施例提供了一种数据备份装置,包括:
接收模块,用于接收终端发送的备份请求,所述备份请求指示待备份数据;
判断模块,用于根据所述备份请求判断备份存储区对应的可用存储容量是否小于所述待备份数据所需的存储容量;
处理模块,用于在判断模块判定为是时,扩大所述备份存储区对应的可用存储容量;
备份模块,用于将所述待备份数据备份至所述备份存储区。
第三方面,本发明实施例还提供了一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行上述数据备份方法。
第四方面,本发明实施例还提供了一种服务器,包括处理器、存储器,所述处理器与所述存储器电性连接,所述存储器用于存储指令和数据;所述处理器用于执行以下步骤:
接收终端发送的备份请求,所述备份请求指示待备份数据;
根据所述备份请求判断备份存储区对应的可用存储容量是否小于所述待备份数据所需的存储容量;
若是,则扩大所述备份存储区对应的可用存储容量;
将所述待备份数据备份至所述备份存储区。
有益效果
本发明实施例提供一种数据备份方法、装置、存储介质及服务器,可以提升数据备份的效率。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例提供的数据备份方法的一种流程示意图。
图2是本发明实施例提供的数据备份系统的一种场景示意图。
图3是本发明实施例提供的数据备份方法的另一种流程示意图。
图4是本发明实施例提供的数据备份装置的一种结构示意图。
图5是本发明实施例提供的数据备份装置的另一种结构示意图。
图6是本发明实施例提供的数据备份装置的又一种结构示意图。
图7是本发明实施例提供的服务器的一种结构示意图。
本发明的最佳实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例提供一种数据备份方法、装置、存储介质及服务器。以下将分别进行详细说明。
一种数据备份方法,包括:
接收终端发送的备份请求,所述备份请求指示待备份数据;
根据所述备份请求判断备份存储区对应的可用存储容量是否小于所述待备份数据所需的存储容量;
若是,则扩大所述备份存储区对应的可用存储容量;
将所述待备份数据备份至所述备份存储区。
在一些实施例中,所述根据所述备份请求判断备份存储区对应的可用存储容量是否小于所述待备份数据所需的存储容量的步骤,包括:
根据所述备份请求获取所述待备份数据的第一数据量;
根据所述数据量确定所述待备份数据所需的存储容量;
判断备份存储区对应的可用存储容量是否小于所述存储容量。
在一些实施例中,所述根据所述备份请求判断备份存储区对应的可用存储容量是否小于所述待备份数据所需的存储容量的步骤,包括:
根据所述备份请求获取待备份数据的第一数据量;
根据所述备份存储区对应的可用存储容量确定可存储的可存数据量;
判断所述可存数据量是否小于所述第一数据量;
若是,则判定所述备份存储区对应的可用存储容量小于所述存储容量;
若否,则判定所述备份存储区对应的可用存储容量不小于所述存储容量。
在一些实施例中,所述扩大所述备份存储区对应的可用存储容量的步骤,包括:
删除所述备份存储区中相应的数据,以扩大所述备份存储区对应的可用存储容量。
在一些实施例中,在接收终端发送的备份请求之前,所述方法还包括:
确定所述备份存储区中已存储数据的数据类型;
基于所述数据类型对所述已存储数据设置重要级别;
所述删除所述备份存储区中相应的数据的步骤,包括:
按照所述重要级别的高低删除所述备份存储区中相应的数据。
在一些实施例中,所述删除所述备份存储区中相应的数据的步骤,包括:
获取所述存储容量与所述可用存储容量之间的容量差值;
根据所述容量差值确定对应可存储数据的第二数据量;
根据所述第二数据量从所述备份存储区中删除相应数据量的数据。
在一些实施例中,在接收终端发送的备份请求之前,所述方法还包括:
接收终端发送的账号登录请求,所述账号登录请求携带目标备份账号及其对应的鉴权信息;
根据所述账号登录请求进行鉴权信息验证;
根据验证结果向所述终端返回登录响应信息,以使得所述终端根据所述登录响应信息登录所述目标备份账号。
在一实施例中,该数据备份装置可以集成在服务器中。
如图1所示,该数据备份方法,流程可以如下:
101、接收终端发送的备份请求,该备份请求指示待备份数据。
在具体实施过程中,为了可以减少服务器负荷,更好地维护服务器,可以
设置只在预设时间段内对终端发送的备份请求进行接收。该预设时间段可以由本领域技术人员或者服务器维护人员进行设置,比如,该预设时间段可以设置为7:00—23:00。
在接收终端发送的备份请求之前,本实施例方法还可以包括登录目标备份账号的过程,具体如下:
接收终端发送的账号登录请求,该账号登录请求携带目标备份账号及其对应的鉴权信息;根据该账号登录请求进行鉴权信息验证,并根据验证结果向终端返回登录响应信息,以使得终端根据该登录响应信息登录该目标备份账号。具体地,终端可以获取备份账号及其对应的鉴权信息,然后,服务器接收终端根据目标备份账号及其对应的鉴权信息发送账号登录请求,鉴权成功后向终端返回允许登录目标备份账号的响应信息。
其中,获取备份账号和鉴权信息的方式可以有多种,比如,可以为用户输入,即获取用户输入的备份账号及其对应的鉴权信息,也可以为自动获取。比如,可以从终端本地存储或者服务器中自动获取备份账号和鉴权信息。
本实施例中,终端发送备份请求的方式可以有多种,比如,在成功登录目标备份账号之后,点击进入菜单下拉目录,选中目录中的“文件上传”即可跳转至终端中可选的文件界面,该文件界面可以显示终端中所有允许备份的数据,如图片、视频等。当选中需要备份的目标数据之后,点击备份控件(如“确认上传”的按钮),通过该控件触发终端发送备份请求。终端与服务器之间可以通过数据网络、无线网络等方式进行通信。
102、根据备份请求判断备份存储区对应的可用存储容量是否小于待备份数据所需的存储容量;若是,执行步骤203,若否,结束流程。
具体地,判断可用存储容量是否小于所需存储容量的方式可以有多种,比如,可以根据待备份数据的数据量确定所需要的存储容量,然后将该所需要的存储容量与备份存储区中和可用存储容量进行比较;也即,步骤“根据备份请求判断备份存储区对应的可用存储容量是否小于待备份数据所需的存储容量”可以包括:
根据备份请求获取待备份数据的第一数据量;
根据数据量确定待备份数据所需的存储容量;
判断备份存储区对应的可用存储容量是否小于该存储容量。
其中,该备份请求可以携带待备份数据的数据量信息,服务器可以根据数据量信息获取待备份数据的数据量。或者,可以直接计算待备份数据的数据量。
另外,还可以确定备份存储区对应的可用存储容量可以存储的可存数据量,然后,将可存数据量与获取的第一数据量进行比较,以判断备份存储区对应的可用存储容量是否小于待备份数据所需的存储容量;也即,步骤“根据备份请求判断备份存储区对应的可用存储容量是否小于待备份数据所需的存储容量”具体流程可以如下:
根据备份请求获取待备份数据的第一数据量;
根据备份存储区对应的可用存储容量确定可存储的可存数据量;
判断可存数据量是否小于第一数据量;
若是,则判定备份存储区对应的可用存储容量小于该存储容量;
若否,则判定备份存储区对应的可用存储容量不小于该存储容量。
其中,可存数据量为备份存储区对应的可用存储容量可存储的最大数据量。
103、扩大备份存储区对应的可用存储容量。
本实施例中,扩大备份存储区对应的可用存储容量的方式可以有多种,比如,可以通过某些免费渠道扩展备份存储区的总存储容量,然而这种方式较为鲜有。为了可以更有效地扩大可用存储容量,可以对备份存储区中已存有的数据进行删除;也即步骤“扩大备份存储区对应的可用存储容量”,具体可以为:
删除备份存储区中相应的数据,以扩大备份存储区对应的可用存储容量。
在一些实施例中,为了扩大可用存储容量,同时又不丢失重要数据,可以对备份存储区中存有的数据进行重要级别划分。在删除数据时将重要级别较低的数据删除以扩大可用存储容量。也即,在接收终端发送的备份请求之前,该方法还可以包括:
确定备份存储区中已存储数据的数据类型;
基于数据类型对已存储数据设置重要级别。
则步骤“删除备份存储区中相应的数据”具体可以为:
按照重要级别的高低删除备份存储区中相应的数据。
在具体实施过程中,可以从该备份存储区中划分出一个区域,用于存储不可删除的数据(如照片、日记等)。而对于一些可删除的数据,可以根据数据类型等设置不同的重要级别,比如,可以把音乐类数据设置重要级别为一级,应用类数据设置重要级别为二级等等。在进行数据删除时,可以从重要级别为一级的数据开始删起。
在一些实施例中,为了可以精确、合理地扩大可用存储容量,可以根据待备份数据所需要的存储容量,扩大相应容量的可用存储容量;也即,步骤“删除备份存储区中相应的数据”,具体流程可以如下:
获取存储容量与可用存储容量之间的容量差值;
根据容量差值确定对应可存储数据的第二数据量;
根据第二数据量从备份存储区中删除相应数据量的数据。
具体地,在根据第二数据量从备份存储区中删除相应数据量的数据时,可以删除与第二数据量等数据量的数据,既可以有足够存储空间存储待备份数据,又可以尽可能地保留已存储的数据不被删除。
104、将待备份数据备份至备份存储区。
具体地,在腾出足够存储空间以备份待备份数据之后,可以向终端发送允许备份的指示信息,以使得终端可以根据该指示信息返回待备份数据,然后,将接收到的待备份数据存储到备份存储区中,以完成数据的备份。
在具体实施时,将待备份数据成功备份至备份存储区之后,可以向终端发送成功备份的提示信息,以避免用户等待。
由上可知,本发明实施例提供了一种数据备份方法,通过接收终端发送的备份请求,该备份请求指示待备份数据,然后,根据备份请求判断备份存储区对应的可用存储容量是否小于待备份数据所需的存储容量,若是,则扩大备份存储区对应的可用存储容量,再将待备份数据备份至备份存储区。该方案可以在备份存储区的可用存储容量不足时,扩大可用存储容量以备份待备份数据,提高了数据备份的效率,减少了资源的浪费,节约了成本。
在一优选实施例中,还提供一种数据备份系统,主要包括服务器和终端。其中,该终端具体可以为平板电脑、手机等。该服务器与终端可通过有线或无线网络进行连接。
比如,请参考图2,图2为本实施例提供的数据备份系统的结构示意图,该数据备份装置具体集成在服务器202中,主要用于接收终端201发送的备份请求,该备份请求指示待备份数据,然后,根据备份请求判断备份存储区对应的可用存储容量是否小于待备份数据所需的存储容量,若是,则扩大备份存储区对应的可用存储容量,再向终端201发送允许备份的指示信息,然后将待备份数据备份至备份存储区。
另外,如图2所示,该数据备份系统还可以包括终端201,该终端201可以向服务器202发送备份请求,并可以将待备份数据发送至服务器202。
在本实施例中,将以该数据备份装置具体集成在服务器中为例,进行详细描述。
在一实施例中,还提供了另一种数据备份方法,如图3所示,流程可以如下:
301、终端向服务器发送备份请求,该备份请求指示待备份数据。
具体地,在步骤301之前,本实施例方法还可以包括登录目标备份账号的过程,具体如下:
向服务器发送账号登录请求,该账号登录请求携带目标备份账号及其对应的鉴权信息;
接收该服务器根据该账号登录请求返回的登录响应信息,并根据该登录响应信息登录该目标备份账号。
具体地,可以获取备份账号及其对应的鉴权信息,然后,根据目标备份账号及其对应的鉴权信息向云端服务器发送账号登录请求。
其中,获取备份账号和鉴权信息的方式可以有多种,比如,可以为用户输入,即获取用户输入的备份账号及其对应的鉴权信息,也可以为自动获取,如可以从终端本地存储或者服务器中自动获取备份账号和鉴权信息。
本实施例中,向服务器发送备份请求的方式可以有多种,比如,备份请求可以通过用户的操作触发,也可以是由系统自行触发。例如,在成功登录目标备份账号之后,点击进入菜单下拉目录,选中目录中的“文件上传”即可跳转至终端中可选的文件界面,该文件界面可以显示终端中所有允许备份的数据,如图片、视频等。当选中需要备份的目标数据之后,点击备份控件(如“确认上传”的按钮),通过该控件触发终端向服务器发送备份请求。
其中,该备份请求可以携带终端该备份账号的账号标识(如账户身份识别码)。而向服务器发送备份请求的媒介可以有多种,比如,可以通过数据网络、无线网络等方式向服务器发送备份请求。
302、服务器根据备份请求判断备份存储区对应的可用存储容量是否小于待备份数据所需的存储容量;若是,执行步骤303,若否,执行步骤306。
具体地,判断可用存储容量是否小于所需存储容量的方式可以有多种,比如,可以根据待备份数据的数据量确定所需要的存储容量,然后将该所需要的存储容量与备份存储区中和可用存储容量进行比较;也即,步骤“根据备份请求判断备份存储区对应的可用存储容量是否小于待备份数据所需的存储容量”可以包括:
根据备份请求获取待备份数据的第一数据量;
根据数据量确定待备份数据所需的存储容量;
判断备份存储区对应的可用存储容量是否小于该存储容量。
其中,该备份请求可以携带待备份数据的数据量信息,服务器可以根据数据量信息获取待备份数据的数据量。或者,可以直接计算待备份数据的数据量。
303、服务器删除备份存储区中相应的数据,以扩大备份存储区对应的可用存储容量。
在一些实施例中,为了扩大可用存储容量,同时又不丢失重要数据,可以对备份存储区中存有的数据进行重要级别划分。在删除数据时将重要级别较低的数据删除以扩大可用存储容量。也即,在接收终端发送的备份请求之前,该方法还可以包括:
确定备份存储区中已存储数据的数据类型;
基于数据类型对已存储数据设置重要级别。
则步骤“删除备份存储区中相应的数据”具体可以为:
按照重要级别的高低删除备份存储区中相应的数据。
在具体实施过程中,可以从该备份存储区中划分出一个区域,用于存储不可删除的数据(如照片、日记等)。而对于一些可删除的数据,可以根据数据类型等设置不同的重要级别,比如,可以把音乐类数据设置重要级别为一级,应用类数据设置重要级别为二级等等。在进行数据删除时,可以从重要级别为一级的数据开始删起。
在一些实施例中,为了可以精确、合理地扩大可用存储容量,可以根据待备份数据所需要的存储容量,扩大相应容量的可用存储容量;也即,步骤“扩大备份存储区对应的可用存储容量”,具体流程可以如下:
获取存储容量与可用存储容量之间的容量差值;
根据容量差值确定对应可存储数据的第二数据量;
根据第二数据量从备份存储区中删除相应数据量的数据。
具体地,在根据第二数据量从备份存储区中删除相应数据量的数据时,可以删除与第二数据量等数据量的数据,既可以有足够存储空间存储待备份数据,又可以尽可能地保留已存储的数据不被删除。
当然,本实施例中,还可以从备份存储区中删除数据量大于第二数据量的已存储数据。
304、服务器判断当前备份存储区对应的可用存储容量是否小于待备份数据所需的存储容量;若是,执行步骤303,若否,执行步骤305。
具体地,在删除相应数据后,服务器可以判断当前备份存储区对应的可用存储容量是否足以用于存储待备份数据。其判断方法请参考上述步骤302,对此不再赘述。
305、服务器向终端发送允许备份的指示信息。
具体地,在判定当前备份存储区对应的可用存储容量足以用于存储待备份数据时,服务器可以向终端发送允许备份的指示信息。
306、终端根据该指示信息向服务器发送待备份数据。
具体地,终端在接收到允许备份的指示信息后,可以触发备份指令,终端可以根据该备份指令向服务器发送需要备份的待备份数据。在发送待备份数据时,可以通过数据网络、无线网络等方式向服务器发送待备份数据。
307、服务器接收终端返回的待备份数据,并将待备份数据存储至备份存储区。
具体地,在将待备份数据成功备份至备份存储区之后,服务器可以向终端发送成功备份的提示信息,以避免用户等待。其中,该提示信息可以弹窗、对话框的形式在终端显示屏显示,比如,可以弹窗形式在备份应用界面显示“已完成备份”等字样。
由上可知,本发明实施例提供了一种数据备份方法,通过终端向服务器发送备份请求,该备份请求指示待备份数据,然后,服务器根据备份请求判断备份存储区对应的可用存储容量是否足够用于存储待备份数据,若不足,则对备份存储区内的数据进行删除,直到有足够存储空间可存储待备份数据为止,以将待备份数据备份至备份存储区。该方案可以在备份存储区的可用存储容量不足时,扩大可用存储容量以备份待备份数据,提高了数据备份的效率,减少了资源的浪费,节约了成本。
一种数据备份装置,包括:
接收模块,用于接收终端发送的备份请求,所述备份请求指示待备份数据;
判断模块,用于根据所述备份请求判断备份存储区对应的可用存储容量是否小于所述待备份数据所需的存储容量;
处理模块,用于在判断模块判定为是时,扩大所述备份存储区对应的可用存储容量;
备份模块,用于将所述待备份数据备份至所述备份存储区。
在一些实施例中,所述判断模块用于:
根据所述备份请求获取所述待备份数据的第一数据量;
根据所述数据量确定所述待备份数据所需的存储容量;
判断备份存储区对应的可用存储容量是否小于所述存储容量。
在一些实施例中,所述处理模块,用于删除所述备份存储区中相应的数据,以扩大所述备份存储区对应的可用存储容量。
在一些实施例中,所述装置还包括:
确定模块,用于在接收终端发送的备份请求之前,确定所述备份存储区中已存储数据的数据类型;
设置模块,用于基于所述数据类型对所述已存储数据设置重要级别;
所述处理模块,具体用于按照所述重要级别的高低删除所述备份存储区中相应的数据。
在一些实施例中,所述处理模块包括:
获取子模块,用于获取所述存储容量与所述可用存储容量之间的容量差值;
确定子模块,用于根据所述容量差值确定对应可存储数据的第二数据量;
删除子模块,用于根据所述第二数据量从所述备份存储区中删除相应数据量的数据。
在一实施例中,还提供一种数据备份装置,该数据备份装置可以集成在服务器中。如图4所示,该数据备份装置400可以包括接收模块401、判断模块402、处理模块403和备份模块404,其中:
接收模块401,用于接收终端发送的备份请求,该备份请求指示待备份数据;
判断模块402,用于根据备份请求判断备份存储区对应的可用存储容量是否小于待备份数据所需的存储容量;
处理模块403,用于在判断模块判定为是时,扩大备份存储区对应的可用存储容量;
备份模块404,用于将待备份数据备份至备份存储区。
在某些实施方式中,判断模块402,可以用于:
根据备份请求获取待备份数据的第一数据量;
根据数据量确定待备份数据所需的存储容量;
判断备份存储区对应的可用存储容量是否小于存储容量。
在某些实施方式中,处理模块403,可以用于删除备份存储区中相应的数据,以扩大备份存储区对应的可用存储容量。
在某些实施方式中,如图5所示,该装置400还可以包括:
确定模块405,用于在接收终端发送的备份请求之前,确定备份存储区中已存储数据的数据类型;
设置模块406,用于基于数据类型对已存储数据设置重要级别;
处理模块403,具体可以用于按照重要级别的高低删除备份存储区中相应的数据。
在某些实施方式中,如图6所示,处理模块403可以包括:获取子模块4031、确定子模块4032、删除子模块4033,如下:
获取子模块4031,用于获取存储容量与可用存储容量之间的容量差值;
确定子模块4032,用于根据容量差值确定对应可存储数据的第二数据量;
删除子模块4033,用于根据第二数据量从备份存储区中删除相应数据量的数据。
由上可知,本发明实施例提供了一种数据备份装置,通过接收终端发送的备份请求,该备份请求指示待备份数据,然后,根据备份请求判断备份存储区对应的可用存储容量是否小于待备份数据所需的存储容量,若是,则扩大备份存储区对应的可用存储容量,再将待备份数据备份至备份存储区。该方案可以在备份存储区的可用存储容量不足时,扩大可用存储容量以备份待备份数据,提高了数据备份的效率,减少了资源的浪费。
另外,一优选实施例还提供一种数据备份系统,包括服务器以及终端。其中该服务器可以包括如上所提及的任一数据备份装置,终端可以为手机、平板电脑等。
在一优选实施例中,还提供了一种服务器,参考图7,其示出了本发明实施例所涉及的服务器的结构示意图。具体地,该服务器500可以包括一个或者一个以上处理核心的处理器501、一个或一个以上计算机可读存储介质的存储器502、通讯单元503、电源504、输入单元505、以及显示单元506等部件。本领域技术人员可以理解,图7中示出的服务器结构并不构成对服务器的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:
处理器501是该服务器500的控制中心,利用各种接口和线路连接整个服务器500的各个部分,通过运行或执行存储在存储器502内的软件程序和/或模块,以及调用存储在存储器502内的数据,执行服务器500的各种功能和处理数据,从而对服务器500进行整体监控。可选的,处理器501可包括一个或多个处理核心;优选的,处理器501可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器501中。
存储器502可用于存储软件程序以及模块。处理器501通过运行存储在存储器502的软件程序以及模块,从而执行各种功能应用以及数据处理。
通讯单元503可用于收发信息过程中,信号的接收和发送,特别地,通讯单元503接收终端发送的信号,并将信号交由一个或者一个以上处理器501处理。同时,通讯单元503将处理器501发出的反馈信号发送给终端。
服务器500还包括给各个部件供电的电源504(比如电池)。优选的,电源可以通过电源管理系统与处理器501逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源504还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。
该服务器500还可包括输入单元505,该输入单元505可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。
该服务器500还可包括显示单元506,该显示单元506可用于显示由用户输入的信息或提供给用户的信息以及服务器500的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元508可包括显示面板,可选的,可以采用液晶显示器(LCD,Liquid Crystal Display)、有机发光二极管(OLED,Organic Light-Emitting Diode)等形式来配置显示面板。
具体在本实施例中,服务器500中的处理器501会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储器502中,并由处理器501来运行存储在存储器502中的应用程序,从而实现各种功能,如下:
接收终端发送的备份请求,该备份请求指示待备份数据,然后,根据备份请求判断备份存储区对应的可用存储容量是否小于待备份数据所需的存储容量,若是,则扩大备份存储区对应的可用存储容量,再将待备份数据备份至备份存储区。
在一些实施例中,处理器501执行以下步骤:
根据该备份请求获取该待备份数据的第一数据量;
根据该数据量确定该待备份数据所需的存储容量;
判断备份存储区对应的可用存储容量是否小于该存储容量。
在一些实施例中,处理器501执行以下步骤:
根据该备份请求获取待备份数据的第一数据量;
根据该备份存储区对应的可用存储容量确定可存储的可存数据量;
判断该可存数据量是否小于该第一数据量;
若是,则判定该备份存储区对应的可用存储容量小于该存储容量;
若否,则判定该备份存储区对应的可用存储容量不小于该存储容量。
在一些实施例中,处理器501执行以下步骤:删除该备份存储区中相应的数据,以扩大该备份存储区对应的可用存储容量。
在一些实施例中,接收终端发送的备份请求之前,处理器501执行以下步骤:
确定该备份存储区中已存储数据的数据类型;
基于该数据类型对该已存储数据设置重要级别;
该删除该备份存储区中相应的数据的步骤,包括:
按照该重要级别的高低删除该备份存储区中相应的数据。
在一些实施例中,处理器501执行以下步骤:获取该存储容量与该可用存储容量之间的容量差值;
根据该容量差值确定对应可存储数据的第二数据量;
根据该第二数据量从该备份存储区中删除相应数据量的数据。
在一些实施例中,在接收终端发送的备份请求之前,处理器501执行以下步骤:
接收终端发送的账号登录请求,该账号登录请求携带目标备份账号及其对应的鉴权信息;
根据该账号登录请求进行鉴权信息验证;
根据验证结果向该终端返回登录响应信息,以使得该终端根据该登录响应信息登录该目标备份账号。
由上可知,本发明实施例提供了一种服务器,该服务器通过接收终端发送的备份请求,该备份请求指示待备份数据,然后,根据备份请求判断备份存储区对应的可用存储容量是否小于待备份数据所需的存储容量,若是,则扩大备份存储区对应的可用存储容量,再将待备份数据备份至备份存储区;该方案可以在备份存储区的可用存储容量不足时,扩大可用存储容量以备份待备份数据,提高了数据备份的效率,减少了资源的浪费。
本发明实施例还提供了一种存储介质,该存储介质中存储有多条指令,该指令适于由处理器加载以执行上述任一数据备份方法。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。
以上对本发明实施例所提供的一种数据备份方法、装置、存储介质及服务器进行了详细介绍,本文中应用程序了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用程序范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims (20)

  1. 一种数据备份方法,其中,包括:
    接收终端发送的备份请求,所述备份请求指示待备份数据;
    根据所述备份请求判断备份存储区对应的可用存储容量是否小于所述待备份数据所需的存储容量;
    若是,则扩大所述备份存储区对应的可用存储容量;
    将所述待备份数据备份至所述备份存储区。
  2. 如权利要求1所述的数据备份方法,其中,所述根据所述备份请求判断备份存储区对应的可用存储容量是否小于所述待备份数据所需的存储容量的步骤,包括:
    根据所述备份请求获取所述待备份数据的第一数据量;
    根据所述数据量确定所述待备份数据所需的存储容量;
    判断备份存储区对应的可用存储容量是否小于所述存储容量。
  3. 如权利要求1所述的数据备份方法,其中,所述根据所述备份请求判断备份存储区对应的可用存储容量是否小于所述待备份数据所需的存储容量的步骤,包括:
    根据所述备份请求获取待备份数据的第一数据量;
    根据所述备份存储区对应的可用存储容量确定可存储的可存数据量;
    判断所述可存数据量是否小于所述第一数据量;
    若是,则判定所述备份存储区对应的可用存储容量小于所述存储容量;
    若否,则判定所述备份存储区对应的可用存储容量不小于所述存储容量。
  4. 如权利要求1所述的数据备份方法,其中,所述扩大所述备份存储区对应的可用存储容量的步骤,包括:
    删除所述备份存储区中相应的数据,以扩大所述备份存储区对应的可用存储容量。
  5. 如权利要求4所述的数据备份方法,其中,在接收终端发送的备份请求之前,所述方法还包括:
    确定所述备份存储区中已存储数据的数据类型;
    基于所述数据类型对所述已存储数据设置重要级别;
    所述删除所述备份存储区中相应的数据的步骤,包括:
    按照所述重要级别的高低删除所述备份存储区中相应的数据。
  6. 如权利要求4所述的数据备份方法,其中,所述删除所述备份存储区中相应的数据的步骤,包括:
    获取所述存储容量与所述可用存储容量之间的容量差值;
    根据所述容量差值确定对应可存储数据的第二数据量;
    根据所述第二数据量从所述备份存储区中删除相应数据量的数据。
  7. 如权利要求1所述的数据备份方法,其中,在接收终端发送的备份请求之前,所述方法还包括:
    接收终端发送的账号登录请求,所述账号登录请求携带目标备份账号及其对应的鉴权信息;
    根据所述账号登录请求进行鉴权信息验证;
    根据验证结果向所述终端返回登录响应信息,以使得所述终端根据所述登录响应信息登录所述目标备份账号。
  8. 一种数据备份装置,其中,包括:
    接收模块,用于接收终端发送的备份请求,所述备份请求指示待备份数据;
    判断模块,用于根据所述备份请求判断备份存储区对应的可用存储容量是否小于所述待备份数据所需的存储容量;
    处理模块,用于在判断模块判定为是时,扩大所述备份存储区对应的可用存储容量;
    备份模块,用于将所述待备份数据备份至所述备份存储区。
  9. 如权利要求8所述的数据备份装置,其中,所述判断模块用于:
    根据所述备份请求获取所述待备份数据的第一数据量;
    根据所述数据量确定所述待备份数据所需的存储容量;
    判断备份存储区对应的可用存储容量是否小于所述存储容量。
  10. 如权利要求8所述的数据备份装置,其中,所述处理模块,用于删除所述备份存储区中相应的数据,以扩大所述备份存储区对应的可用存储容量。
  11. 如权利要求10所述的数据备份装置,其中,所述装置还包括:
    确定模块,用于在接收终端发送的备份请求之前,确定所述备份存储区中已存储数据的数据类型;
    设置模块,用于基于所述数据类型对所述已存储数据设置重要级别;
    所述处理模块,具体用于按照所述重要级别的高低删除所述备份存储区中相应的数据。
  12. 如权利要求10所述的数据备份装置,其中,所述处理模块包括:
    获取子模块,用于获取所述存储容量与所述可用存储容量之间的容量差值;
    确定子模块,用于根据所述容量差值确定对应可存储数据的第二数据量;
    删除子模块,用于根据所述第二数据量从所述备份存储区中删除相应数据量的数据。
  13. 一种存储介质,其中,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行权利要求1-7中任一项所述的数据备份方法。
  14. 一种服务器,包括处理器、存储器,所述处理器与所述存储器电性连接,所述存储器用于存储指令和数据;所述处理器用于执行以下步骤:
    接收终端发送的备份请求,所述备份请求指示待备份数据;
    根据所述备份请求判断备份存储区对应的可用存储容量是否小于所述待备份数据所需的存储容量;
    若是,则扩大所述备份存储区对应的可用存储容量;
    将所述待备份数据备份至所述备份存储区。
  15. 如权利要求14所述的服务器,其中,所述根据所述备份请求判断备份存储区对应的可用存储容量是否小于所述待备份数据所需的存储容量的步骤,包括:
    根据所述备份请求获取所述待备份数据的第一数据量;
    根据所述数据量确定所述待备份数据所需的存储容量;
    判断备份存储区对应的可用存储容量是否小于所述存储容量
  16. 如权利要求14所述的服务器,其中,所述根据所述备份请求判断备份存储区对应的可用存储容量是否小于所述待备份数据所需的存储容量的步骤,包括:
    根据所述备份请求获取待备份数据的第一数据量;
    根据所述备份存储区对应的可用存储容量确定可存储的可存数据量;
    判断所述可存数据量是否小于所述第一数据量;
    若是,则判定所述备份存储区对应的可用存储容量小于所述存储容量;
    若否,则判定所述备份存储区对应的可用存储容量不小于所述存储容量。
  17. 如权利要求14所述的服务器,其中,所述扩大所述备份存储区对应的可用存储容量的步骤,包括:
    删除所述备份存储区中相应的数据,以扩大所述备份存储区对应的可用存储容量。
  18. 如权利要求17所述的服务器,其中,接收终端发送的备份请求之前,所述处理器还用于执行以下步骤:
    确定所述备份存储区中已存储数据的数据类型;
    基于所述数据类型对所述已存储数据设置重要级别;
    所述删除所述备份存储区中相应的数据的步骤,包括:
    按照所述重要级别的高低删除所述备份存储区中相应的数据。
  19. 如权利要求17所述的服务器,其中,所述删除所述备份存储区中相应的数据的步骤,包括:
    获取所述存储容量与所述可用存储容量之间的容量差值;
    根据所述容量差值确定对应可存储数据的第二数据量;
    根据所述第二数据量从所述备份存储区中删除相应数据量的数据。
  20. 如权利要求14所述的服务器,其中,在接收终端发送的备份请求之前,所述处理器还用于执行以下步骤:
    接收终端发送的账号登录请求,所述账号登录请求携带目标备份账号及其对应的鉴权信息;
    根据所述账号登录请求进行鉴权信息验证;
    根据验证结果向所述终端返回登录响应信息,以使得所述终端根据所述登录响应信息登录所述目标备份账号。
PCT/CN2017/095690 2016-10-25 2017-08-02 数据备份方法、装置、存储介质及服务器 WO2018076872A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610939198.9 2016-10-25
CN201610939198.9A CN106528333A (zh) 2016-10-25 2016-10-25 一种数据备份方法和装置

Publications (1)

Publication Number Publication Date
WO2018076872A1 true WO2018076872A1 (zh) 2018-05-03

Family

ID=58292324

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/095690 WO2018076872A1 (zh) 2016-10-25 2017-08-02 数据备份方法、装置、存储介质及服务器

Country Status (2)

Country Link
CN (1) CN106528333A (zh)
WO (1) WO2018076872A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109697140A (zh) * 2018-11-19 2019-04-30 深圳市腾讯信息技术有限公司 数据备份方法及装置、数据恢复方法及装置、存储介质
CN113867996A (zh) * 2021-08-18 2021-12-31 广州方硅信息技术有限公司 数据容灾的处理方法、服务器、直播系统及存储介质

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528333A (zh) * 2016-10-25 2017-03-22 广东欧珀移动通信有限公司 一种数据备份方法和装置
CN109379563B (zh) * 2018-10-30 2020-10-23 华南师范大学 监控视频数据存储管理的方法和系统
CN110658395A (zh) * 2019-07-08 2020-01-07 南京铁道职业技术学院 地铁列车牵引逆变器测试系统及方法

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508736A (zh) * 2011-10-11 2012-06-20 宇龙计算机通信科技(深圳)有限公司 通信终端中应用程序的备份方法及通信终端
WO2013054374A1 (en) * 2011-10-12 2013-04-18 Hitachi, Ltd. Storage system, and data backup method and system restarting method of storage system
CN106528333A (zh) * 2016-10-25 2017-03-22 广东欧珀移动通信有限公司 一种数据备份方法和装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU4641300A (en) * 1999-04-21 2000-11-02 Toni Data, Llc Managed remote virtual mass storage for client data terminal
CN103024329B (zh) * 2013-01-04 2016-04-13 四川长虹电子系统有限公司 一种监控录像的存储管理方法
CN103916848B (zh) * 2013-01-09 2019-06-14 中兴通讯股份有限公司 一种移动终端数据备份和恢复的方法及系统
CN104461372B (zh) * 2013-09-16 2018-01-05 北京联想核芯科技有限公司 用于控制存储装置的方法、控制装置和电子设备

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508736A (zh) * 2011-10-11 2012-06-20 宇龙计算机通信科技(深圳)有限公司 通信终端中应用程序的备份方法及通信终端
WO2013054374A1 (en) * 2011-10-12 2013-04-18 Hitachi, Ltd. Storage system, and data backup method and system restarting method of storage system
CN106528333A (zh) * 2016-10-25 2017-03-22 广东欧珀移动通信有限公司 一种数据备份方法和装置

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109697140A (zh) * 2018-11-19 2019-04-30 深圳市腾讯信息技术有限公司 数据备份方法及装置、数据恢复方法及装置、存储介质
CN109697140B (zh) * 2018-11-19 2023-08-25 深圳市腾讯信息技术有限公司 数据备份方法及装置、数据恢复方法及装置、存储介质
CN113867996A (zh) * 2021-08-18 2021-12-31 广州方硅信息技术有限公司 数据容灾的处理方法、服务器、直播系统及存储介质

Also Published As

Publication number Publication date
CN106528333A (zh) 2017-03-22

Similar Documents

Publication Publication Date Title
WO2018076872A1 (zh) 数据备份方法、装置、存储介质及服务器
WO2018076866A1 (zh) 数据处理方法、装置、存储介质、电子设备及服务器
WO2018076868A1 (zh) 一种数据同步方法、装置、系统、存储介质和服务器
WO2018076812A1 (zh) 数据请求的响应方法、装置、存储介质、服务器及系统
WO2018076867A1 (zh) 数据备份的删除方法、装置、系统、存储介质和服务器
WO2018076818A1 (zh) 数据的备份方法、装置、电子设备、存储介质及系统
WO2017206878A1 (zh) 一种基于唤醒锁的处理方法、装置、存储介质及电子设备
WO2018076864A1 (zh) 一种数据同步方法、装置、存储介质及电子设备
WO2018076889A1 (zh) 数据备份的方法、装置、系统、存储介质及服务器
WO2017206883A1 (zh) 一种应用处理方法、装置、存储介质及电子设备
WO2018161578A1 (zh) 动态调节屏幕刷新率的方法、装置、存储介质及电子设备
WO2018076870A1 (zh) 数据处理方法、装置、存储介质、服务器及数据处理系统
WO2018076811A1 (zh) 数据分享方法、装置、存储介质及电子设备
WO2018076840A1 (zh) 数据分享方法、装置、存储介质及服务器
WO2018076861A1 (zh) 数据传输的控制方法、装置、存储介质、服务器及系统
WO2018076829A1 (zh) 终端数据的处理方法、装置、系统、存储介质及服务器
WO2022050652A1 (en) Method, apparatus, and computer readable storage medium for controlling account
WO2018076819A1 (zh) 数据的上传方法、装置、存储介质、电子设备及系统
WO2018028128A1 (zh) 一种上行数据的信息反馈方法及相关设备
WO2018090823A1 (zh) 一种系统分区关键数据的保护方法及系统、终端
WO2017206862A1 (zh) 一种基于亮屏锁的处理方法、装置、存储介质及电子设备
WO2018161602A1 (zh) 电子设备帧率的控制方法、装置、存储介质及电子设备
WO2018161572A1 (zh) 移动终端帧率的控制方法、装置、存储介质及电子设备
WO2018076873A1 (zh) 数据分享方法、装置、介质、电子设备及系统
WO2018076842A1 (zh) 一种数据备份方法、装置、系统、存储介质及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17864609

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17864609

Country of ref document: EP

Kind code of ref document: A1