Logic Machine Forum
Link to download backup - 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: Link to download backup (/showthread.php?tid=191)



Link to download backup - managementboy - 13.01.2016

I would like to create a cron script on a separate machine to download a Backup regularly. Does someone know the link or json to do this?


RE: Link to download backup - admin - 13.01.2016

For current stable FW:
http://admin:PASSWORD@IP/cgi-bin/scada/general/utilities-backup.cgi

For upcoming FW:
http://admin:PASSWORD@IP/scada-main/general/backup


RE: Link to download backup - npinguin - 18.01.2016

I have a simular question, how to do an automatic backup daily/ weekly.

The example script does not seem to work?

Thanks


RE: Link to download backup - admin - 19.01.2016

Double check that you have set correct password and IP. You can open this link in browser and download dialog should appear.


RE: Link to download backup - managementboy - 19.01.2016

All I did was add http://admin:PASSWORD@IP/cgi-bin/scada/general/utilities-backup.cgi to a cron job on a separate linux box (could even be a raspi). I use a simple backup rotating script to have a daily/weekly/monthly backup on disk. Works like a charm.


RE: Link to download backup - npinguin - 20.01.2016

(19.01.2016, 09:31)managementboy Wrote: All I did was add http://admin:PASSWORD@IP/cgi-bin/scada/general/utilities-backup.cgi to a cron job on a separate linux box (could even be a raspi). I use a simple backup rotating script to have a daily/weekly/monthly backup on disk. Works like a charm.

Thanks, but I was looking for a solution from the logic machine based on this script

http://openrb.com/e-mail-backup-file-once-a-month-from-lm/


RE: Link to download backup - Erwin van der Zwart - 20.01.2016

Hi,

Just create a planned script and set the interval to week/month by cron, past my script in it, and adjust your gmail settings.

Due to new security settings from gmail you have to activate a setting in your gmail account.  Login to google with your account and go to this url:

https://www.google.com/settings/security/lesssecureapps and make sure it's enabled otherwise the controller will be blocked for sending e-mail.

Good luck!

BR,

Erwin


RE: Link to download backup - managementboy - 22.01.2016

(20.01.2016, 19:52)npinguin Wrote: Thanks, but I was looking for a solution from the logic machine based on this script

http://openrb.com/e-mail-backup-file-once-a-month-from-lm/

my solution has the advantage, that the image does not leave my network at any time...