CN112600928A - File transmission method and device, electronic equipment and medium - Google Patents

File transmission method and device, electronic equipment and medium Download PDF

Info

Publication number
CN112600928A
CN112600928A CN202011501089.1A CN202011501089A CN112600928A CN 112600928 A CN112600928 A CN 112600928A CN 202011501089 A CN202011501089 A CN 202011501089A CN 112600928 A CN112600928 A CN 112600928A
Authority
CN
China
Prior art keywords
file
transmitted
server
sending
receiving server
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.)
Pending
Application number
CN202011501089.1A
Other languages
Chinese (zh)
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.)
Beijing Ruian Technology Co Ltd
Original Assignee
Beijing Ruian Technology Co Ltd
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 Beijing Ruian Technology Co Ltd filed Critical Beijing Ruian Technology Co Ltd
Priority to CN202011501089.1A priority Critical patent/CN112600928A/en
Publication of CN112600928A publication Critical patent/CN112600928A/en
Priority to PCT/CN2021/108834 priority patent/WO2022127118A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Abstract

The embodiment of the application discloses a file transmission method, a file transmission device, electronic equipment and a file transmission medium. The method comprises the following steps: loading a preset configuration file; the information in the configuration file comprises an IP address, a port number, a user name, a password of a receiving server and the position information of the file to be transmitted; creating at least one process according to the corresponding relation between a sending server and a receiving server of a file to be transmitted; and transmitting the file to be transmitted through at least one process according to the information in the configuration file based on a standard protocol. The scheme is used for file transmission between different sending servers and different receiving servers, different protocol files do not need to be adaptively configured, and the method has universality for file transmission between different sending servers and different receiving servers.

Description

File transmission method and device, electronic equipment and medium
Technical Field
The embodiment of the application relates to the technical field of file transmission, in particular to a file transmission method, a file transmission device, electronic equipment and a file transmission medium.
Background
With the development of the internet and the popularization of the network in recent years, the number of netizens is increased sharply, and the netizens have entered the big data era in a large step. In the current era, network data is increasing, and factories cooperate with each other to provide better services for customers.
In the process of cooperation, file transmission and distribution are needed among systems of different manufacturers. However, at present, when files are transmitted and distributed among systems of different manufacturers, a receiving party needs to deploy a local protocol file according to a protocol of a sending party, and the process is complicated and complicated, so that the real-time performance and the efficiency of file transmission are influenced.
Disclosure of Invention
The embodiment of the invention provides a file transmission method, a file transmission device, electronic equipment and a file transmission medium, which are suitable for file transmission among different servers and have universality.
In one embodiment, an embodiment of the present application provides a file transfer method, including:
loading a preset configuration file; the information in the configuration file comprises an IP address, a port number, a user name, a password of a receiving server and the position information of the file to be transmitted;
creating at least one process according to the corresponding relation between a sending server and a receiving server of a file to be transmitted;
and transmitting the file to be transmitted through at least one process according to the information in the configuration file based on a standard protocol.
In another embodiment, an embodiment of the present application further provides a file transfer apparatus, including:
the configuration file loading module is used for loading a preset configuration file; the information in the configuration file comprises an IP address, a port number, a user name, a password of a receiving server and the position information of the file to be transmitted;
the process creation module is used for creating at least one process according to the corresponding relation between the sending server and the receiving server of the file to be transmitted;
and the transmission module is used for transmitting the file to be transmitted through at least one process according to the information in the configuration file based on a standard protocol.
In another embodiment, an embodiment of the present application further provides an electronic device, including: one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the file transfer method according to any one of the embodiments of the present application.
In yet another embodiment, the present application further provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the file transfer method according to any one of the embodiments of the present application.
In the embodiment of the application, a preset configuration file is loaded; the information in the configuration file comprises an IP address, a port number, a user name, a password of a receiving server and the position information of the file to be transmitted; creating at least one process according to the corresponding relation between a sending server and a receiving server of a file to be transmitted; based on a standard protocol, the file to be transmitted is transmitted through at least one process according to the information in the configuration file, so that when file transmission is carried out among different servers, only a local protocol file needs to be configured according to the standard protocol, and the protocol file does not need to be adaptively configured according to a non-standard transmission protocol, so that the real-time property and the efficiency of file transmission are improved, and the file transmission method has universality.
Drawings
FIG. 1 is a flowchart of a file transfer method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a file transfer method according to another embodiment of the present invention;
FIG. 3 is a flowchart illustrating a file transfer method according to another embodiment of the present invention;
FIG. 4 is a diagram illustrating a retry transmission of a file transmission method according to another embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a file transfer device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a flowchart of a file transmission method according to an embodiment of the present invention. The file transmission method provided by the embodiment can be applied to the situation of file transmission between servers. Typically, the method can be applied to the case of file transmission between different sending servers and different receiving servers. The method may be specifically executed by a file transfer apparatus, where the apparatus may be implemented by software and/or hardware, and the apparatus may be integrated in an electronic device capable of implementing the file transfer method provided in the embodiment of the present application. Referring to fig. 1, the method of the embodiment of the present application specifically includes:
s110, loading a preset configuration file; the information in the configuration file comprises an IP address, a port number, a user name, a password of the receiving server and the position information of the file to be transmitted.
The configuration file may be a file set in advance according to the IP address, the port number, the user name, the password of the receiving server, and the location information of the file to be transmitted. The user name and the password are login information authorized by the receiving server, and other servers can log in the receiving server through the authorized login information and establish connection with the receiving server. The position information of the file to be transmitted can be a path of the file to be transmitted and the like.
Illustratively, the configuration file is loaded first, and it is determined whether the configuration file loading is successful. If the loading is successful, continuing the subsequent steps, and if the loading is not successful, ending the process, and continuing to load the configuration file or judging whether the configuration file needing to be loaded exists.
S120, creating at least one process according to the corresponding relation between the sending server and the receiving server of the file to be transmitted.
Illustratively, a process needs to be established to perform the file transfer task between the sending server to the receiving server. The number of the processes can be determined according to the corresponding relation between the sending server and the receiving server, so that the processes can meet the file transmission requirement and the transmission rate requirement.
In the embodiment of the application, multiple distribution modes can be configured according to actual file transmission requirements, for example, modes such as sending from one sending server to one receiving server, sending from one sending server to multiple receiving servers at the same time, sending from multiple sending servers to one receiving server at the same time, and the like, so that the multi-scenario requirements are met. For the above-mentioned multiple distribution modes, it can be realized by establishing multiple processes.
And S130, transmitting the file to be transmitted through at least one process according to the information in the configuration file based on a standard protocol.
The standard protocol may be an FTP protocol. When file transmission is performed between different servers, if protocols such as TCP are used, before transmitting a file, a receiving server needs to configure a protocol file the same as that of a sending server, and the process is complicated. If the protocol file of the sending server is a protocol specific to the sending server, the protocol file needs to be sent to the receiving server for configuration, and information leakage can be caused. In the embodiment of the application, when the file is transmitted, the standard protocol is adopted, the sending server and the receiving server only need to configure the protocol file based on the standard protocol, so that the file transmission can be accurately realized in real time, the protocol file of the sending server does not need to be sent to the receiving server for configuration, the file transmission efficiency is improved, and the information security can be ensured.
Illustratively, the information of the configuration file includes the position information of the file to be transmitted, so that the file to be transmitted can be obtained according to the information in the configuration file, and the file to be transmitted is sent to the receiving server, so as to realize the transmission of the file.
In the embodiment of the application, a preset configuration file is loaded; the information in the configuration file comprises an IP address, a port number, a user name, a password of a receiving server and the position information of the file to be transmitted; creating at least one process according to the corresponding relation between a sending server and a receiving server of a file to be transmitted; based on a standard protocol, the file to be transmitted is transmitted through at least one process according to the information in the configuration file, so that when file transmission is carried out among different servers, only a local protocol file needs to be configured according to the standard protocol, and the protocol file does not need to be adaptively configured according to a non-standard transmission protocol, so that the real-time property and the efficiency of file transmission are improved, and the file transmission method has universality.
Fig. 2 is a flowchart of a file transfer method according to another embodiment of the present invention. For further optimization of the embodiments, details which are not described in detail in the embodiments are described in the embodiments. Referring to fig. 2, the file transmission method provided in this embodiment may include:
s210, obtaining the IP address, the port number, the user name and the password of the receiving server through the configuration file.
Illustratively, after the configuration file is loaded, the IP address, the port number, the user name and the password of the receiving server are obtained through the configuration file. The IP address and the port number are used to determine the destination of data transmission, and the user name and the password are used to log in to the receiving server, thereby establishing a communication connection.
S220, sending the user name and the password to the receiving server through the IP address and the port number of the receiving server, and logging in the server.
Illustratively, the user name and the password are sent through the IP address and the port number of the receiving server, so that the user name and the password are accurately sent to the receiving server, and the receiving server is logged in based on the user name and the password to establish a communication connection with the receiving server. Because the user name and the password are authorized by the receiving server, the user can successfully log in the receiving server.
S230, aiming at the corresponding relation that each sending server sends the file to be transmitted to each receiving server, a process is created.
Illustratively, in order to improve the efficiency of file transmission, a process is created for the corresponding relationship of the file to be transmitted sent from each sending server to each receiving server. In this embodiment of the present application, the correspondence between the sending server and the receiving server includes: a sending server sends the file to be transmitted to a receiving server; or one sending server sends the file to be transmitted to at least two receiving servers; or at least two sending servers send the file to be transmitted to one receiving server.
For example, one sending server transmits a file to one receiving server, one process is created, one sending server transmits a file to a plurality of receiving servers, a plurality of processes are created, a plurality of sending servers transmit a file to one receiving server, a plurality of processes are created, one process is created for the corresponding relationship of the file transmitted by each sending server to each receiving server, and the file transmission is completed.
S240, acquiring the file to be transmitted according to the position information of the file to be transmitted.
Illustratively, the position information of the file to be transmitted is obtained through the configuration file, and the file to be transmitted is obtained through the position information so as to transmit the file to be transmitted.
And S250, sending the file to be transmitted to the receiving server.
In this embodiment of the present application, sending the file to be transmitted to the receiving server includes: determining whether the file to be transmitted is transmitted successfully; if not, placing the file to be transmitted which is not successfully transmitted in the backup area; and carrying out retry transmission on the file to be transmitted which is not transmitted successfully in the backup area. The method for carrying out retry transmission on the file to be transmitted which is not successfully transmitted in the backup area comprises the following steps: if the times of retrying transmission of the file to be transmitted which is not successfully transmitted in the backup area reach the preset times and the file to be transmitted is not successfully transmitted, determining whether the retention time of the file to be transmitted which is not successfully transmitted reaches the preset time or not; and if so, deleting the file to be transmitted which is not transmitted successfully.
For example, as shown in fig. 3 and fig. 4, during the file transmission process, it is determined whether the file transmission is successful. If the transmission is successful, deleting the file to be transmitted from the file list to be transmitted, and if the file is not successfully transmitted, placing the file in a backup area. And for the file to be transmitted which is not transmitted successfully in the backup area, retrying transmission to confirm whether the transmission can be successfully transmitted again. If the transmission can be successfully carried out, deleting the file to be transmitted from the backup area, if the transmission cannot be successfully carried out and the transmission retries times reach a preset number of times, for example 3 times, temporarily reserving the file to be transmitted, and deleting the reserved file to be transmitted which is not successfully transmitted until the reserving time reaches the preset time.
According to the scheme, the python language is used for development, and the FTP standard protocol is based, so that the application range is wide, the method can be efficiently operated among servers of different types and different operating systems, most scenes needing to distribute files can be met, a simple and effective solution is provided for the requirement of cross-server file distribution, the efficiency and the real-time performance of file transmission are improved, and the scheme has universality.
As shown in fig. 3, in the embodiment of the present application, a file to be transmitted may be obtained according to the position information of the file to be transmitted. The sending server can also be traversed to find whether the file to be transmitted exists or not, so that the file to be transmitted is acquired and transmitted. In addition, a timing statistic thread and a real-time statistic thread may be provided, the timing statistic thread may count transmission information at a timing, such as daily statistics, and the real-time statistic thread may count transmission information at a real-time, such as the number of file transmissions, the size of a file, and the transmission rate, and display the transmission information.
Fig. 5 is a schematic structural diagram of a file transfer device according to an embodiment of the present invention. The device is suitable for the file transmission between the servers. Typically, the method can be applied to the case of file transmission between different sending servers and different receiving servers. The apparatus may be implemented by software and/or hardware, and the apparatus may be integrated in an electronic device. Referring to fig. 5, the apparatus specifically includes:
a configuration file loading module 310, configured to load a preset configuration file; the information in the configuration file comprises an IP address, a port number, a user name, a password of a receiving server and the position information of the file to be transmitted;
a process creating module 320, configured to create at least one process according to a correspondence between a sending server and a receiving server of a file to be transmitted;
a transmission module 330, configured to transmit, based on a standard protocol, the file to be transmitted through at least one process according to the information in the configuration file.
In an embodiment of the present application, the apparatus further includes:
the receiving module is used for acquiring the IP address, the port number, the user name and the password of the receiving server through the configuration file;
and the login module is used for sending the user name and the password to the receiving server through the IP address and the port number of the receiving server and logging in the server.
In this embodiment of the application, the process creation module 320 includes:
and the creating unit is used for creating a process aiming at the corresponding relation of the file to be transmitted sent to each receiving server by each sending server.
In this embodiment of the present application, the correspondence between the sending server and the receiving server includes:
a sending server sends the file to be transmitted to a receiving server; alternatively, the first and second electrodes may be,
a sending server sends the file to be transmitted to at least two receiving servers; alternatively, the first and second electrodes may be,
and at least two sending servers send the file to be transmitted to one receiving server.
In this embodiment, the transmission module 330 includes:
the file acquisition unit to be transmitted is used for acquiring the file to be transmitted according to the position information of the file to be transmitted;
and the file to be transmitted sending unit is used for sending the file to be transmitted to the receiving server.
In this embodiment of the present application, the file sending unit to be transmitted is specifically configured to:
determining whether the file to be transmitted is transmitted successfully;
if not, placing the file to be transmitted which is not successfully transmitted in the backup area;
and carrying out retry transmission on the file to be transmitted which is not transmitted successfully in the backup area.
In this embodiment of the present application, the file sending unit to be transmitted is specifically configured to:
if the times of retrying transmission of the file to be transmitted which is not successfully transmitted in the backup area reach the preset times and the file to be transmitted is not successfully transmitted, determining whether the retention time of the file to be transmitted which is not successfully transmitted reaches the preset time or not;
and if so, deleting the file to be transmitted which is not transmitted successfully.
The file transmission device provided by the embodiment of the application can execute the file transmission method provided by any embodiment of the application, and has corresponding functional modules and beneficial effects of the execution method.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. FIG. 6 illustrates a block diagram of an exemplary electronic device 412 suitable for use in implementing embodiments of the present application. The electronic device 412 shown in fig. 6 is only an example and should not bring any limitations to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the electronic device 412 may include: one or more processors 416; the memory 428 is configured to store one or more programs, and when the one or more programs are executed by the one or more processors 416, the one or more processors 416 are enabled to implement the file transfer method provided in the embodiment of the present application, including:
loading a preset configuration file; the information in the configuration file comprises an IP address, a port number, a user name, a password of a receiving server and the position information of the file to be transmitted;
creating at least one process according to the corresponding relation between a sending server and a receiving server of a file to be transmitted;
and transmitting the file to be transmitted through at least one process according to the information in the configuration file based on a standard protocol.
The components of the electronic device 412 may include, but are not limited to: one or more processors or processors 416, a memory 428, and a bus 418 that couples the various device components including the memory 428 and the processors 416.
Bus 418 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, transaction ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 412 typically includes a variety of computer device-readable storage media. These storage media may be any available storage media that can be accessed by electronic device 412 and includes both volatile and nonvolatile storage media, removable and non-removable storage media.
Memory 428 can include computer-device readable storage media in the form of volatile memory, such as Random Access Memory (RAM)430 and/or cache memory 432. The electronic device 412 may further include other removable/non-removable, volatile/nonvolatile computer device storage media. By way of example only, storage system 434 may be used to read from and write to non-removable, nonvolatile magnetic storage media (not shown in FIG. 6, commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical storage medium) may be provided. In these cases, each drive may be connected to bus 418 by one or more data storage media interfaces. Memory 428 can include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 440 having a set (at least one) of program modules 442 may be stored, for instance, in memory 428, such program modules 442 including, but not limited to, an operating device, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 442 generally perform the functions and/or methodologies of the described embodiments of the invention.
The electronic device 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing device, display 424, etc.), with one or more devices that enable a user to interact with the electronic device 412, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 412 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 422. Also, the electronic device 412 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) through the network adapter 420. As shown in FIG. 6, network adapter 420 communicates with the other modules of electronic device 412 over bus 418. It should be appreciated that although not shown in FIG. 6, other hardware and/or software modules may be used in conjunction with the electronic device 412, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID devices, tape drives, and data backup storage devices, among others.
The processor 416 executes various functional applications and data processing, such as implementing a file transfer method provided by an embodiment of the present application, by executing at least one of other programs of the plurality of programs stored in the memory 428.
One embodiment of the present invention provides a storage medium containing computer-executable instructions that when executed by a computer processor perform a file transfer method, comprising:
loading a preset configuration file; the information in the configuration file comprises an IP address, a port number, a user name, a password of a receiving server and the position information of the file to be transmitted;
creating at least one process according to the corresponding relation between a sending server and a receiving server of a file to be transmitted;
and transmitting the file to be transmitted through at least one process according to the information in the configuration file based on a standard protocol.
The computer storage media of the embodiments of the present application may take any combination of one or more computer-readable storage media. The computer readable storage medium may be a computer readable signal storage medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor device, apparatus, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the present application, a computer readable storage medium may be any tangible storage medium that can contain, or store a program for use by or in connection with an instruction execution apparatus, device, or apparatus.
A computer readable signal storage medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal storage medium may also be any computer readable storage medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution apparatus, device, or apparatus.
Program code embodied on a computer readable storage medium may be transmitted using any appropriate storage medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or device. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for file transfer, the method comprising:
loading a preset configuration file; the information in the configuration file comprises an IP address, a port number, a user name, a password of a receiving server and the position information of the file to be transmitted;
creating at least one process according to the corresponding relation between a sending server and a receiving server of a file to be transmitted;
and transmitting the file to be transmitted through at least one process according to the information in the configuration file based on a standard protocol.
2. The method of claim 1, wherein after loading the pre-set configuration file, the method further comprises:
acquiring the IP address, the port number, the user name and the password of the receiving server through the configuration file;
and sending the user name and the password to the receiving server through the IP address and the port number of the receiving server, and logging in the server.
3. The method according to claim 1, wherein creating at least one process according to the correspondence between the sending server and the receiving server of the file to be transmitted comprises:
and establishing a process aiming at the corresponding relation of the file to be transmitted sent to each receiving server by each sending server.
4. The method according to any one of claims 1 to 3, wherein the correspondence between the sending server and the receiving server comprises:
a sending server sends the file to be transmitted to a receiving server; alternatively, the first and second electrodes may be,
a sending server sends the file to be transmitted to at least two receiving servers; alternatively, the first and second electrodes may be,
and at least two sending servers send the file to be transmitted to one receiving server.
5. The method of claim 1, wherein transmitting the file to be transmitted by at least one process according to the information in the configuration file based on a standard protocol comprises:
acquiring the file to be transmitted according to the position information of the file to be transmitted;
and sending the file to be transmitted to the receiving server.
6. The method of claim 5, wherein sending the file to be transmitted to the receiving server comprises:
determining whether the file to be transmitted is transmitted successfully;
if not, placing the file to be transmitted which is not successfully transmitted in the backup area;
and carrying out retry transmission on the file to be transmitted which is not transmitted successfully in the backup area.
7. The method of claim 6, wherein retrying the file to be transferred in the backup area that is not successfully transferred comprises:
if the times of retrying transmission of the file to be transmitted which is not successfully transmitted in the backup area reach the preset times and the file to be transmitted is not successfully transmitted, determining whether the retention time of the file to be transmitted which is not successfully transmitted reaches the preset time or not;
and if so, deleting the file to be transmitted which is not transmitted successfully.
8. A file transfer apparatus, characterized in that the apparatus comprises:
the configuration file loading module is used for loading a preset configuration file; the information in the configuration file comprises an IP address, a port number, a user name, a password of a receiving server and the position information of the file to be transmitted;
the process creation module is used for creating at least one process according to the corresponding relation between the sending server and the receiving server of the file to be transmitted;
and the transmission module is used for transmitting the file to be transmitted through at least one process according to the information in the configuration file based on a standard protocol.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the file transfer method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a file transfer method according to any one of claims 1 to 7.
CN202011501089.1A 2020-12-17 2020-12-17 File transmission method and device, electronic equipment and medium Pending CN112600928A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011501089.1A CN112600928A (en) 2020-12-17 2020-12-17 File transmission method and device, electronic equipment and medium
PCT/CN2021/108834 WO2022127118A1 (en) 2020-12-17 2021-07-28 File transmission method and apparatus, and electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011501089.1A CN112600928A (en) 2020-12-17 2020-12-17 File transmission method and device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN112600928A true CN112600928A (en) 2021-04-02

Family

ID=75199320

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011501089.1A Pending CN112600928A (en) 2020-12-17 2020-12-17 File transmission method and device, electronic equipment and medium

Country Status (2)

Country Link
CN (1) CN112600928A (en)
WO (1) WO2022127118A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113364880A (en) * 2021-06-18 2021-09-07 国家电网有限公司华东分部 Information exchange method, system, electronic device and storage medium
WO2022127118A1 (en) * 2020-12-17 2022-06-23 北京锐安科技有限公司 File transmission method and apparatus, and electronic device and storage medium
CN114827129A (en) * 2022-04-27 2022-07-29 济南浪潮数据技术有限公司 File distribution method, device and medium
CN115297101A (en) * 2022-06-20 2022-11-04 中银金融科技有限公司 File transmission method and device, electronic equipment and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115460198B (en) * 2022-06-27 2023-03-31 河北东来工程技术服务有限公司 Method, system and device for determining shipping file transmission plan
CN115242778B (en) * 2022-07-21 2023-06-27 中电金信软件有限公司 File transmission method and device, electronic equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140373116A1 (en) * 2011-06-28 2014-12-18 ZTE Portugal-Projectors de Telecomunicações Unipessoal Lda Establishing a secure file transfer session for secure file transfer to a demarcation device
CN108093015A (en) * 2016-11-21 2018-05-29 北京京东尚科信息技术有限公司 Document transmission system
CN109286677A (en) * 2018-10-25 2019-01-29 北京北信源信息安全技术有限公司 A kind of method and device of the file transmission based on FTP
CN111078423A (en) * 2019-11-21 2020-04-28 京东数字科技控股有限公司 Data processing method, device, system and computer readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491169B (en) * 2013-09-24 2017-05-17 长沙裕邦软件开发有限公司 Method and system for uploading and downloading files
CN105701109B (en) * 2014-11-26 2019-12-03 深圳市腾讯计算机系统有限公司 The method and device that file multichannel is sent
US10594771B2 (en) * 2017-02-09 2020-03-17 International Business Machines Corporation Distributed file transfer with high performance
CN112600928A (en) * 2020-12-17 2021-04-02 北京锐安科技有限公司 File transmission method and device, electronic equipment and medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140373116A1 (en) * 2011-06-28 2014-12-18 ZTE Portugal-Projectors de Telecomunicações Unipessoal Lda Establishing a secure file transfer session for secure file transfer to a demarcation device
CN108093015A (en) * 2016-11-21 2018-05-29 北京京东尚科信息技术有限公司 Document transmission system
CN109286677A (en) * 2018-10-25 2019-01-29 北京北信源信息安全技术有限公司 A kind of method and device of the file transmission based on FTP
CN111078423A (en) * 2019-11-21 2020-04-28 京东数字科技控股有限公司 Data processing method, device, system and computer readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022127118A1 (en) * 2020-12-17 2022-06-23 北京锐安科技有限公司 File transmission method and apparatus, and electronic device and storage medium
CN113364880A (en) * 2021-06-18 2021-09-07 国家电网有限公司华东分部 Information exchange method, system, electronic device and storage medium
CN114827129A (en) * 2022-04-27 2022-07-29 济南浪潮数据技术有限公司 File distribution method, device and medium
CN115297101A (en) * 2022-06-20 2022-11-04 中银金融科技有限公司 File transmission method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2022127118A1 (en) 2022-06-23

Similar Documents

Publication Publication Date Title
CN112600928A (en) File transmission method and device, electronic equipment and medium
CN112906025B (en) Database management and control method, device, equipment and storage medium
CN112346794A (en) Interface calling method, device, equipment and medium
CN113326155A (en) Information processing method, device, system and storage medium
CN113765818A (en) Distributed current limiting method, device, equipment, storage medium and system
CN110896489B (en) Authentication method, device, equipment and storage medium
CN111162880B (en) Data transmission method, device, equipment and storage medium
CN111343262B (en) Distributed cluster login method, device, equipment and storage medium
CN110677307B (en) Service monitoring method, device, equipment and storage medium
CN112769876B (en) Method, device, equipment and medium for acquiring equipment channel information
CN112702336A (en) Security control method and device for government affair service, security gateway and storage medium
CN104639555A (en) Request processing method, system and device
CN111818145A (en) File transmission method, device, system, equipment and storage medium
CN113992382B (en) Service data processing method and device, electronic equipment and storage medium
CN112433920A (en) Buried point data reporting method, device, equipment and medium
CN107181802B (en) Intelligent hardware control method and device, server and storage medium
CN113873057A (en) Data processing method and device
CN111414263A (en) Information processing method, device, server and storage medium
CN110995538A (en) Network data acquisition method, device, system, equipment and storage medium
CN113938404B (en) Asset detection method, device, equipment, system and storage medium
CN113986995A (en) Request distribution method and device, storage medium and electronic equipment
CN112395141B (en) Data page management method and device, electronic equipment and storage medium
CN113726885A (en) Method and device for adjusting flow quota
CN113760988A (en) Method, device, equipment and storage medium for associating and processing unbounded stream data
CN113760693A (en) Method and apparatus for local debugging of microservice systems

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210402

RJ01 Rejection of invention patent application after publication