I am using shutil.copy() to transfer files from one server to another server on a network, both Windows.
I have used shutil and os modules for lot of automation tasks but confined to local machine. Are there better approaches to transfer file (I mean in terms of performance) from one server to another?
Yes: use FTP, or in Python, ftplib.
ETA: If it needs to be Secure File Transfer Protocol, paramiko is a great library to use.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With