Logic Machine Forum
Monthly trend and LM backup to FTP - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Monthly trend and LM backup to FTP (/showthread.php?tid=3430)



Monthly trend and LM backup to FTP - Krstfr2k - 22.06.2021

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?


RE: Monthly trend and LM backup to FTP - Daniel - 22.06.2021

Check this https://forum.logicmachine.net/showthread.php?tid=429&pid=2251#pid2251


RE: Monthly trend and LM backup to FTP - Krstfr2k - 22.06.2021

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?


RE: Monthly trend and LM backup to FTP - admin - 22.06.2021

See this thread for an example: https://forum.logicmachine.net/showthread.php?tid=429


RE: Monthly trend and LM backup to FTP - Krstfr2k - 22.06.2021

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-hour-csv-object-log-file-to-external-ftp-server-from-lm2/


RE: Monthly trend and LM backup to FTP - admin - 22.06.2021

Timeout means that LM cannot reach the FTP server. Check if you can ping the server from LM (System config > Status > Network utilities).


RE: Monthly trend and LM backup to FTP - Krstfr2k - 22.06.2021

(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.


RE: Monthly trend and LM backup to FTP - Krstfr2k - 22.06.2021

Found another answer to one of my questions from this post by npinguin:

https://forum.logicmachine.net/showthread.php?tid=1257&pid=7510#pid7510