Automatic data backup method and automatic data backup system

By establishing a secure connection between the local server and the remote server, and using automated task scheduling and backup scripts, automatic data backup is realized, solving the problem of manual backup and easy errors, ensuring data security and integrity.

CN120492225APending Publication Date: 2025-08-15深圳市和讯华谷信息技术有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510527977.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-24
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

In the prior art, manual backup of data files consumes a lot of human resources, and the frequency and timeliness are difficult to guarantee, which can easily lead to data loss or incomplete backup, and cannot meet the data backup requirements.

Method used

By generating backup instructions regularly, establish a secure connection between the local server and the remote server, use backup scripts to automatically perform data backup on the remote server, and close the connection after completion, combining task scheduling tools and security protocol libraries to ensure the automation and security of the backup process.

Benefits of technology

It realizes an unattended automatic backup process, reduces human operation errors, improves the timeliness and accuracy of backups, ensures the security of data transmission, and avoids data loss or incomplete backups.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120492225A_ABST
    Figure CN120492225A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic data backup method and an automatic data backup system. The automatic data backup method comprises the following steps: regularly generating a backup instruction; establishing a secure connection between a local server and a remote server according to the backup instruction; a backup script of the local server is transmitted to the remote server based on the secure connection; executing the backup script on the remote server, and performing data backup on the remote server; and after the backup is completed, the secure connection between the local server and the remote server is closed. According to the technical scheme, manual backup can be effectively reduced, data loss or incomplete backup caused by human negligence is reduced, and the data backup requirement is met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data backup, and in particular to an automatic data backup method and an automatic data backup system. Background Art

[0002] In the process of data management, in order to meet environmental requirements, it is often necessary to perform some modification operations such as adding, deleting, and modifying data files. In order to save the data before modification, staff need to manually back up the relevant files every time they operate.

[0003] Manual operation by staff not only consumes a lot of human resources, but also makes it difficult to ensure the frequency and timeliness of manual backup. In addition, it is easy to cause data loss or incomplete backup due to human negligence, and cannot meet the data backup requirements. Summary of the Invention

[0004] In view of the defects in the prior art, the automatic data backup method provided by the present invention can effectively reduce manual backup, reduce data loss or incomplete backup caused by human negligence, and meet the data backup requirements.

[0005] The present invention provides a method for automatic data backup, which includes:

[0006] Generate backup instructions regularly;

[0007] Establishing a secure connection between the local server and the remote server according to the backup instruction;

[0008] The backup script of the local server is transmitted to the remote server based on the secure connection;

[0009] Executing the backup script on the remote server to back up data on the remote server;

[0010] After the backup is completed, the secure connection between the local server and the remote server is closed.

[0011] In one aspect, the step of backing up data on the remote server includes:

[0012] The backup script on the remote server reads the configuration file path;

[0013] If the file path exists, parse the configuration file to obtain the target path for the backup file storage;

[0014] Create a backup folder named with the current timestamp under the target path;

[0015] Setting the backup file name according to the file name of the target path;

[0016] The backup file is stored in the backup folder.

[0017] In one aspect, after the step of creating a backup folder named with the current timestamp under the target path, the method includes:

[0018] All target paths are traversed until the backup operation of the backup files in all the target paths is completed.

[0019] In one aspect, after the step of storing the backup file in the backup folder, the method further comprises:

[0020] Switch to the backup file directory, obtain the timestamps of all backup folders in the directory, and sort them in chronological order;

[0021] Keep the backup folders for a specified number of times according to the preset rules and delete the remaining expired folders.

[0022] In one aspect, the step of periodically generating a backup instruction includes:

[0023] A scheduled task is created using a task scheduling tool, and a backup instruction for triggering a backup operation on a remote server is generated based on the scheduled task.

[0024] In one aspect, the steps of establishing a secure connection between a local server and a remote server include:

[0025] Use the security protocol library to establish an encrypted secure connection between the local server and the remote server, and automatically add the host key during the connection process.

[0026] In one aspect, the step of executing the backup script on the remote server includes:

[0027] Granting script execution permission to the remote server;

[0028] According to the execution permission, the remote server executes the backup script.

[0029] In one aspect, after executing the backup script on the remote server, the method further comprises:

[0030] Capture error information during the execution of the backup script and record corresponding logs.

[0031] In one aspect, after the step of backing up data on the remote server, the method further includes:

[0032] Delete the backup script on the remote server.

[0033] In addition, in order to solve the above problems, the present application also provides an automatic data backup system, which includes:

[0034] A timing execution module, the timing execution module is used to generate backup instructions at a regular time;

[0035] A server connection module, the server connection module is used to establish a secure connection between the local server and the remote server according to the backup instruction;

[0036] A script uploading module, which is used to upload the backup script of the local server to the remote server based on the secure connection;

[0037] A script execution module, wherein the script execution module executes the backup script on the remote server to perform data backup on the remote server;

[0038] The server disconnection module is used to close the secure connection between the local server and the remote server after completing the backup.

[0039] The beneficial effects of the present invention are embodied in: automatically executing the backup process through the automatic backup method, realizing unattended backup process with the help of automated task scheduling, establishing a secure connection between the local server and the remote server, thereby ensuring the security of the data transmission process; the backup script executes data backup on the remote server, and the backup script will follow the steps to back up the data of the remote server, avoiding human operational errors, thereby effectively reducing the occurrence of data loss or incomplete backup, and meeting the data backup requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly describes the drawings required for the specific embodiments or the description of the prior art. Similar elements or parts are generally identified by similar reference numerals throughout the drawings. Elements or parts in the drawings are not necessarily drawn to scale.

[0041] Figure 1 Schematic diagram of the process steps of the automatic data backup method of the present invention;

[0042] Figure 2 Schematic diagram of the process steps of executing a backup script in the automatic data backup method of the present invention;

[0043] Figure 3 for Figure 2 A schematic diagram of the detailed steps in the execution of a backup script in the automatic data backup method of the present invention;

[0044] Figure 4 for Figure 1 A schematic diagram of the detailed steps of the automatic data backup method of the present invention;

[0045] Figure 5 Schematic diagram of the steps for establishing a secure connection in the automatic data backup method of the present invention;

[0046] Figure 6 Schematic diagram of the connection of the automatic data backup system of the present invention.

[0047] Description of the drawings: 100, scheduled execution module; 200, server connection module; 300, script upload module; 400, script execution module; 500, server disconnection module; 600, backup management module; 700, backup cleanup module. DETAILED DESCRIPTION

[0048] The following embodiments of the technical solution of the present invention will be described in detail with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention and are therefore only examples and are not intended to limit the scope of protection of the present invention.

[0049] It should be noted that, unless otherwise specified, the technical or scientific terms used in the present invention should have the common meanings understood by those skilled in the art to which the present invention belongs.

[0050] Please refer to Figure 1 As shown, an embodiment of the present invention provides a method for automatic data backup, which includes:

[0051] Step S10, regularly generate backup instructions; in the server management scenario of an enterprise or an individual, in order to ensure the security and integrity of the data, it is necessary to regularly back up the data of the remote server. Manual backup is not only inefficient, but also prone to omissions. Therefore, a task scheduling tool (such as Jenkins, Cron, etc.) is used to automatically generate backup instructions according to preset time rules. For example, a backup can be set to be performed at 2 am every day, or at 10 am every day. In this way, the backup work can be ensured to be performed according to the predetermined time period, thereby improving the timeliness and accuracy of the backup.

[0052] Step S20, establishes a secure connection between the local server and the remote server based on the backup instruction; when the scheduled task generates the backup instruction, the local server needs to establish a connection with the remote server to perform subsequent backup operations. Since there may be security risks during data transmission, such as data being stolen or tampered with, the SSH (Secure Shell) protocol is used to achieve a secure connection. The SSH protocol encrypts the transmitted data through encryption technology to prevent the data from being illegally obtained during the transmission process. When establishing a connection, the local server will initiate a connection request to the remote server based on the configured remote server's IP address, port number, user name and password (or key) and other information, and after processes such as identity authentication and key exchange, a secure communication channel is finally established.

[0053] In step S30, the local server's backup script is transmitted to the remote server over a secure connection. The local server has pre-written a backup script that contains the specific steps and logic for the backup operation. After establishing a secure connection, the local server uses an SSH-based file transfer protocol, such as SFTP (SSH File Transfer Protocol) or SCP (Secure Copy), to transfer the backup script to the remote server. The remote server then executes the backup script, completing the data backup task. For example, the backup script may specify the files or directories to be backed up, the storage location of the backup files, and the naming conventions for the backup files.

[0054] In step S40, the backup script is executed on the remote server to back up the data on the remote server. Once the backup script has been successfully transmitted to the remote server, the remote server executes the script. The backup script backs up the data on the remote server according to predefined logic. This entire process is automated, reducing manual intervention and improving backup accuracy and efficiency.

[0055] Step S50: After the backup is complete, the secure connection between the local server and the remote server is closed. After the remote server completes the data backup task, the secure connection between the local server and the remote server is closed. Closing the connection frees up network bandwidth and server resources while also reducing potential security risks. The local server sends a request to close the connection to the remote server. Upon receiving the request, the remote server and the local server terminate the SSH session, closing the secure connection channel.

[0056] In this embodiment, the backup process is automatically executed through an automatic backup method, and the backup process is unattended with the help of automated task scheduling. A secure connection is established between the local server and the remote server to ensure the security of the data transmission process. The backup script executes data backup on the remote server, and the backup script will follow the steps to back up the data on the remote server, avoiding human operational errors, thereby effectively reducing the occurrence of data loss or incomplete backup, and meeting the data backup requirements.

[0057] See Figure 4 As shown, it should be noted that after step S20, step S21 is generally performed to determine whether the connection is successful. If the connection is successful, step S30 is performed. Subsequent operations such as uploading and executing the backup script depend on a successful connection. If the connection is not successful, step S20 is performed again to reconnect securely. After multiple unsuccessful attempts, the connection failure is displayed.

[0058] See Figure 2 As shown, in one embodiment of the present application, the step of backing up data on a remote server includes:

[0059] In step S410, the backup script on the remote server reads the configuration file path. When performing data backup, key information for the backup operation, such as the path of the data to be backed up and the location of the backup file, is typically stored in a configuration file. When the backup script is started, it first locates this configuration file and reads its path. The presence of a configuration file allows for greater flexibility in backup operations, allowing users to adjust backup strategies by modifying the configuration file without having to modify the script code itself.

[0060] After step S410, step S411 proceeds to determine whether the file path exists. When executing the backup script, the path information in the configuration file is used to determine the data to be backed up and the storage location of the backup file. If the path does not exist, subsequent backup operations will not proceed normally and may even cause program errors. Therefore, before performing the actual backup operation, it is necessary to first determine whether the file path exists.

[0061] Step S420, if the file path exists, the configuration file is parsed to obtain the target path for storing the backup file; after the backup script obtains the configuration file path, it will first check whether the file exists. If the file exists, the script will parse it. The configuration file generally uses a specific format, such as JSON, XML, or a simple key-value pair format. The script will read the file content according to the corresponding format rules and extract the target path where the backup file needs to be stored. The target path determines where the backup file will be saved, which can be a disk partition of the remote server or an external storage device mounted by the remote server.

[0062] Step S430 creates a backup folder named after the current timestamp under the target path. To facilitate management and distinguishing backup files at different times, the script creates a new folder under the target path and names it after the current timestamp. The timestamp can be accurate to year, month, day, hour, minute, and second, ensuring that the name of each backup folder is unique. For example, if the current time is 15:30:00 on April 22, 2025, the name of the created folder can be 20250422153000. This can clearly record the time of each backup, making it easier to find and restore data at a specific time point.

[0063] Step S440, set the backup file name according to the file name of the target path; in addition to the backup folder having a clear identifier, the backup file itself also needs to have a suitable name. The backup script will set the name of the backup file based on the original name of the file to be backed up under the target path, combined with certain rules. For example, add a timestamp or backup-related identifier after the original file name. For example, if the file to be backed up is data.txt, then the backup file name can be set to data_20250422153000.txt, which not only retains the information of the original file name, but also reflects the backup time.

[0064] Step S450: Store the backup file in a backup folder. After creating the backup folder and setting the backup file name, the backup script will move or copy the generated backup file to the previously created backup folder named with a timestamp. This completes the backup file storage operation, and the data is securely stored in the designated location for subsequent recovery and use when needed.

[0065] See Figure 3 As shown, in one embodiment of the present application, after the step of creating a backup folder named with the current timestamp under the target path, the following steps are included:

[0066] Step S460, traverses all target paths until the backup operation of the backup files of all target paths is completed. In an actual data backup scenario, there may be multiple target paths that need to be backed up, and these paths may contain data of different types and uses. Steps S410-S450 complete the backup operation under a single target path, and step S460 repeats this process for all target paths. The script will perform operations such as reading configuration, creating a backup folder, setting the backup file name, and storing the backup file on each target path in turn until the data under all target paths is backed up. For example, the company's server may need to back up multiple different paths such as the path where the database file is located and the path where the user uploaded files are located at the same time. The script will back up these paths one by one.

[0067] In one embodiment of the present application, after the step of storing the backup file in the backup folder, the following steps are included:

[0068] Step S470: Switch to the backup file directory, obtain the timestamps of all backup folders in the directory, and sort them in chronological order. As time goes by and backup operations continue, a large number of backup folders will accumulate in the backup file directory. In order to effectively manage these backups, they are sorted according to the backup time. The backup script will first switch to the directory where the backup files are stored, and then traverse all backup folders in the directory. Since each backup folder is named with a timestamp, the backup script can extract this timestamp information. Then, the backup script will sort these timestamps in chronological order, so that the time sequence of each backup can be clearly known, which is convenient for subsequent screening according to preset rules.

[0069] Step S480, retain the backup folders for a specified number of times according to the preset rules, and delete the remaining expired folders. In order to save storage space and at the same time ensure that data within a certain time range can be restored when needed, a preset rule is usually set to retain a certain number of backups. For example, the preset rule is to retain the latest 7 backups. The script will retain the latest backup folders for a specified number of times (such as 7 times) based on the backup folder list sorted in step S470, and treat the remaining backup folders as expired folders and delete them. This ensures that there is enough historical backup data available for recovery, and does not allow too many expired backups to take up a lot of storage space.

[0070] In one embodiment of the present application, the step of periodically generating a backup instruction includes:

[0071] In step S110, a scheduled task is created using a task scheduling tool. Based on the scheduled task, a backup instruction is generated to trigger a backup operation on the remote server. Task scheduling tools are software tools that automatically execute tasks based on user-defined time schedules. With these tools, users can predefine parameters such as task execution time and frequency, thereby automating task execution.

[0072] In the task scheduling tool, users need to specify the task's specific content, execution time, and frequency. For example, to execute a backup task at 2:00 AM daily, the user would set this time in the tool. When the scheduled task is triggered, the task scheduling tool generates a backup instruction based on the user's pre-defined rules. This instruction contains various parameters and information required to perform the backup operation, such as the remote server address, username, password, and backup file storage location.

[0073] See Figure 5As shown, in one embodiment of the present application, the steps of establishing a secure connection between the local server and the remote server include:

[0074] Step S210 uses the security protocol library to establish an encrypted secure connection between the local server and the remote server, and automatically adds the host key during the connection process. In a network environment, a secure connection channel needs to be established to prevent data from being stolen or tampered with during transmission. The security protocol library provides a series of encryption algorithms and protocols to help achieve secure communication. For example, the SSH protocol is used to provide secure remote login and other network services in an insecure network. By using the SSH protocol library, the local server can establish an encrypted connection with the remote server, ensuring the confidentiality and integrity of the data during transmission.

[0075] When establishing an SSH connection, the remote server sends its host key to the local server. The host key is a server identifier used to verify the server's identity. The local server needs to verify the validity of this host key and add it to its local trusted list. During the automatic host key addition process, the local server automatically checks the host key's identifier and, if the identifiers match, adds the host key to the local file. This way, the next time you connect to the same server, the local server can verify the server's identity by verifying the host key, preventing man-in-the-middle attacks.

[0076] In one embodiment of the present application, the step of executing the backup script on the remote server includes:

[0077] Step S401: Granting the script execute permission to the remote server. In an operating system, files and directories have corresponding permissions that control access and operations by different users. The backup script is an executable program file and, by default, does not have execute permission. To allow the remote server to execute the backup script, execute permission must be granted.

[0078] Step S402: The remote server executes the backup script based on the execution permissions. Once the backup script has been successfully assigned execution permissions, the remote server can execute the backup script based on these permissions. When executing the backup script, the remote server backs up the data according to the logic and instructions pre-programmed in the backup script.

[0079] In one embodiment of the present application, after executing the backup script on the remote server, the following steps are included:

[0080] Step S403 captures error messages during the backup script execution and records the corresponding logs. Errors may occur during backup script execution, such as insufficient file permissions, insufficient disk space, or network interruptions. Capturing these error messages helps quickly locate and resolve issues. Recording the logs also preserves a historical record of operations, facilitating subsequent auditing and analysis.

[0081] In one embodiment of the present application, after the step of backing up data on the remote server, the method further includes:

[0082] Step S404: Delete the backup script on the remote server. After completing the backup task, the backup script no longer needs to be retained on the remote server. Deleting the backup script can save server storage space and also reduce potential security risks. If the backup script has vulnerabilities, it can be exploited by attackers.

[0083] In one embodiment of the present application, after the step of regularly generating a backup instruction,

[0084] Step S11, obtaining the addresses of the remote servers to be backed up. When backing up server data, it is first necessary to determine which remote servers need to be backed up, which requires obtaining the addresses of these remote servers. The addresses of remote servers are typically IP addresses or domain names. For example, the addresses of the remote servers to be backed up can be stored in a configuration file, and the backup script reads the configuration file upon startup to obtain the server address information. Alternatively, the server address information can be stored in a database, and the backup script can obtain these addresses through database query statements. Alternatively, when the script is executed, the user can enter the addresses of the remote servers to be backed up through command line parameters or an interactive interface.

[0085] Step S12: traverse the addresses of all remote servers to ensure that each remote server is backed up. After obtaining the addresses of all remote servers that need to be backed up, it is necessary to perform a backup operation on the server corresponding to each address. The traversal operation ensures that no server that needs to be backed up is missed.

[0086] See Figure 6 As shown, the present application also provides an automatic data backup system, which includes: a timing execution module 100, a server connection module 200, a script upload module 300, a script execution module 400 and a server disconnection module 500.

[0087] The scheduled execution module 100 is used to generate backup instructions on a scheduled basis. The core function of the scheduled execution module 100 is to automatically generate backup instructions according to preset time rules. In actual server management scenarios, to ensure data security and integrity, it is necessary to regularly back up data on remote servers. Manual operations are not only inefficient but also prone to omissions. The scheduled execution module 100 uses a task scheduling mechanism to automatically trigger backup tasks. For example, with the help of a task scheduling tool, the execution time and frequency of backup tasks can be set according to requirements.

[0088] The server connection module 200 is used to establish a secure connection between the local server and the remote server based on the backup instructions; the server connection module is responsible for establishing a secure connection between the local server and the remote server based on the backup instructions generated by the timed execution module. The SSH protocol is usually used to achieve a secure connection. The server connection module 200 will initiate a connection request to the remote server based on the IP address, port number, user name and password (or key) of the remote server configured in the backup instructions. During the connection process, operations such as identity authentication and key exchange will be performed to ensure the security of the connection. For example, the local server will verify the host key sent by the remote server. If the verification is successful, an encrypted communication channel will be established to provide security for subsequent data transmission and script execution.

[0089] The script upload module 300 is used to transfer the local server's backup script to the remote server via a secure connection. The main function of the script upload module 300 is to transfer the pre-written backup script on the local server to the remote server via the established secure connection. The backup script contains specific backup operation steps and logic. For example, the backup script specifies the files or directories to be backed up, the backup file storage location, and the backup file naming convention. Once uploaded to the remote server, the remote server can execute the backup task according to the backup script's logic.

[0090] The script execution module 400 executes the backup script on the remote server to back up the data on the remote server. The script execution module 400 executes the received backup script on the remote server to back up the data on the remote server. First, the script execution module grants execution permission to the backup script to ensure that the backup script can be executed by the remote server. Then, according to the logic in the backup script, the configuration file is read to determine the source data path to be backed up and the storage target path of the backup file. Next, a backup folder named with the current timestamp is created under the target path, the source data is packaged, and the packaged files are stored in the newly created backup folder. The entire process is executed automatically, reducing manual intervention and improving the accuracy and efficiency of backup.

[0091] The server disconnect module 500 is used to close the secure connection between the local server and the remote server after the backup is complete. The server disconnect module 500 closes the secure connection between the local server and the remote server after the remote server completes the data backup task. Closing the connection frees up network bandwidth and server resources while reducing potential security risks. The server disconnect module sends a connection close request to the remote server. Upon receiving the request, both parties terminate the SSH session, closing the secure connection channel.

[0092] The automatic data backup system also includes a backup management module 600 and a backup cleanup module 700. The backup management module 600 is responsible for coordinating and monitoring the entire backup process, covering various aspects such as backup task scheduling, execution status tracking, and backup data storage management. The core task of the backup cleanup module 700 is to clean up expired or unused backup data, freeing up storage space and improving storage resource utilization efficiency, thereby avoiding increased storage costs or decreased system performance caused by excessive amounts of redundant backup data.

[0093] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some or all of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the claims and description of the present invention.

Claims

1. A method for automatic data backup, characterized in that: The automatic data backup method includes: Generate backup instructions regularly; Establishing a secure connection between the local server and the remote server according to the backup instruction; The backup script of the local server is transmitted to the remote server based on the secure connection; Executing the backup script on the remote server to back up data on the remote server; After the backup is completed, the secure connection between the local server and the remote server is closed.

2. The automatic data backup method according to claim 1, characterized in that: The step of backing up data on the remote server includes: The backup script on the remote server reads the configuration file path; If the file path exists, parse the configuration file to obtain the target path for the backup file storage; Create a backup folder named with the current timestamp under the target path; Setting the backup file name according to the file name of the target path; The backup file is stored in the backup folder.

3. The automatic data backup method according to claim 2, characterized in that: After the step of creating a backup folder named with the current timestamp under the said target path, including: All target paths are traversed until the backup operation of the backup files in all the target paths is completed.

4. The automatic data backup method according to claim 2, wherein: After the step of storing the backup file in the backup folder, the method includes: Switch to the backup file directory, obtain the timestamps of all backup folders in the directory, and sort them in chronological order; Keep the backup folders for a specified number of times according to the preset rules and delete the remaining expired folders.

5. The automatic data backup method according to claim 1, characterized in that: The steps of periodically generating a backup instruction include: A scheduled task is created using a task scheduling tool, and a backup instruction for triggering a backup operation on a remote server is generated based on the scheduled task.

6. The automatic data backup method according to claim 1, characterized in that: The steps to establish a secure connection between the local server and the remote server include: Use the security protocol library to establish an encrypted secure connection between the local server and the remote server, and automatically add the host key during the connection process.

7. The automatic data backup method according to claim 1, characterized in that: The step of executing the backup script on the remote server includes: Granting script execution permission to the remote server; According to the execution permission, the remote server executes the backup script.

8. The automatic data backup method according to claim 1, characterized in that: After the step of executing the backup script on the remote server, the method further includes: Capture error information during the execution of the backup script and record corresponding logs.

9. The automatic data backup method according to claim 1, characterized in that: After the step of backing up data on the remote server, the method further includes: Delete the backup script on the remote server.

10. An automatic data backup system, characterized in that: The automatic data backup system includes: A timing execution module, the timing execution module is used to generate backup instructions at a regular time; A server connection module, the server connection module is used to establish a secure connection between the local server and the remote server according to the backup instruction; A script uploading module, which is used to upload the backup script of the local server to the remote server based on the secure connection; A script execution module, wherein the script execution module executes the backup script on the remote server to perform data backup on the remote server; The server disconnection module is used to close the secure connection between the local server and the remote server after completing the backup.