![]() |
Full 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: Full Backup (/showthread.php?tid=4955) |
Full Backup - bednarekluc - 09.09.2023 I just learned the hard way that my backup script doesn't make a backup off everything. I'm missing the startup script, the user libraries and the common functions. This is the script that is use to make the daily backup. Is there a way to backup everything at once? Code: --Take a backup and ftp to NAS RE: Full Backup - admin - 09.09.2023 See this: https://forum.logicmachine.net/showthread.php?tid=4418&pid=28503#pid28503 RE: Full Backup - bednarekluc - 09.09.2023 (09.09.2023, 09:33)admin Wrote: See this: https://forum.logicmachine.net/showthread.php?tid=4418&pid=28503#pid28503 With this I get the backup in a binary string. But I'm not able to put it to the ftp server. Do I need to save it on the LM first before I can upload it to the FTP server? RE: Full Backup - admin - 09.09.2023 Use ltn12.source.string RE: Full Backup - npinguin - 11.09.2023 Can someone share the new script to make a full backup? RE: Full Backup - admin - 11.09.2023 Try this, you need 2023 firmware for it to work. Change variables in the first 4 lines as needed. Code: host = 'FTP_SERVER_IP' RE: Full Backup - manos@dynamitec - 08.02.2024 Hello Admin, I have two SpaceLynks which used to run on FW 2.7.0 and today I updated one on FW 2.8.3. I have the following script which creates a backup of the system every day and sends it by mail. Although the script seems to work, when I tried to restore the .tar.gz file on FW 2.8.3 without recieveing an error the system rebooted to an empty state where nothting was restored. Then I just renamed the destination file from .tar.gz to .zip. This backup file could be properly restored but I noticed that this small change on the script was not saved on the restored project. Is there a better way to create a full backup of the system and send by mail, that will run properly on FW 2.8.3 or 3.0.0 or any LM running on FW 202306? Below you can see the original script without the settings variables. Code: --***********************************************************-- Kind regards, RE: Full Backup - admin - 08.02.2024 Use this script: https://kb.logicmachine.net/scripting/backup-file-email-ftp/#send-via-email RE: Full Backup - gtsamis - 06.03.2024 (08.02.2024, 11:54)admin Wrote: Use this script: https://kb.logicmachine.net/scripting/backup-file-email-ftp/#send-via-email It seems that the backup from the script and also from utilities does not contain event, resident and sheduled scripts. FW: 20240219 Can you please verify and sugest a solution. BR George RE: Full Backup - admin - 07.03.2024 These scripts are stored in the main database. RE: Full Backup - EjvindHald - 02.03.2025 (07.03.2024, 07:01)admin Wrote: These scripts are stored in the main database.Hi Can you help with how I can then do a backup and restore of the main database? My primary conecern is my event-based and resident scripts. Thanks. ![]() RE: Full Backup - admin - 03.03.2025 Utilities > Backup / Restore. Backups can be automated. There are several examples in our KB: https://kb.logicmachine.net/ RE: Full Backup - tigi - 02.04.2025 Hi, If I manually backup the script using tools > backup scripts, I get a file looking like this 'Scripting-LogicMachine-2025.04.02-18.45.tar.gz' I was wondering if I can automate this and backup to FTP? Thanks in advance! RE: Full Backup - Daniel - 03.04.2025 Why just scripts? Full backup contains everything. RE: Full Backup - tigi - 03.04.2025 (03.04.2025, 07:05)Daniel Wrote: Why just scripts? Full backup contains everything. I use full backup, but for retrieving a script from backup it is not as straightforward as when I open the Scripting-LogicMachine-2025.04.02-18.45.tar.gz and get the script. If it's possible I would like to know how to do this. RE: Full Backup - admin - 03.04.2025 data (string) contains .tar.gz archive contents Code: webrequest = require('webrequest') RE: Full Backup - tigi - 03.04.2025 (03.04.2025, 09:14)admin Wrote: data (string) contains .tar.gz archive contents Great, thanks for the code! |