This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Monthly trend and LM backup to FTP
#1
Hello!

I've been trying to figure out how to send a monthly backup of all trend logs as .csv filesĀ and the LM project file to an external FTP server, but with my limited scripting knowledge this has proven to be quite difficult!

Could anyone provide some examples if they have a similar solution?
Reply
#2
Check this https://forum.logicmachine.net/showthrea...51#pid2251
------------------------------
Ctrl+F5
Reply
#3
Thank you Daniel.

Is there a way to store the csv file to an external ftp server on the local network, and not on the LM itself?
Reply
#4
See this thread for an example: https://forum.logicmachine.net/showthread.php?tid=429
Reply
#5
I have tried using this example to transfer files to an external ftp server, but I keep getting "FTP upload error: timeout"

Only thing I have changed in the script is username, password and IP address.

https://openrb.com/example-export-last-h...-from-lm2/
Reply
#6
Timeout means that LM cannot reach the FTP server. Check if you can ping the server from LM (System config > Status > Network utilities).
Reply
#7
(22.06.2021, 11:16)admin Wrote: Timeout means that LM cannot reach the FTP server. Check if you can ping the server from LM (System config > Status > Network utilities).

I figured it out, it was the firewall on the computer running the FTP server that blocked the connection.
Reply
#8
Found another answer to one of my questions from this post by npinguin:

https://forum.logicmachine.net/showthrea...10#pid7510
Reply


Forum Jump: