Python Forum
transfering files between server locations using ftplib - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: transfering files between server locations using ftplib (/thread-22365.html)



transfering files between server locations using ftplib - katesfb - Nov-10-2019

Hi
I have a logging application that uploads hourly files to an ftp server (remotely using an Arduino). I then use a python script (once per day) that downloads the hr files from the server, appends them to a day file and uploads this file to an archive directory on the same server. This works fine but seems overly complicated. Is there a better way, for example is it possible to transfer the hour files from one server location and append them to the day file in an archive directory on the same server without the intermediate step of down loading them to the local hard-disk and processing them etc. I am using ftplib under python3.

Any help/ideas is much appreciated.

Cheers.


RE: transfering files between server locations using ftplib - katesfb - Nov-11-2019

Anybody have any ideas on this?

Cheers.