Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Transferring files between Windows Servers using shutil copy/move

Tags:

python

windows

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?

like image 323
Dominix Avatar asked Jan 20 '26 23:01

Dominix


1 Answers

Yes: use FTP, or in Python, ftplib.

ETA: If it needs to be Secure File Transfer Protocol, paramiko is a great library to use.

like image 77
David Robinson Avatar answered Jan 22 '26 17:01

David Robinson