E-mail backup file - 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: E-mail backup file (/showthread.php?tid=396) |
RE: E-mail backup file - pioneersteffen - 31.10.2021 Hi @all, I've used the script from post #3. Unfortunately I getting the following message: Code: Backup 31.10.2021 11:11:08 Does anybody has a working guideline how to do it? Many thanks! Best Regards Steffen RE: E-mail backup file - Daniel - 01.11.2021 https://forum.logicmachine.net/showthread.php?tid=396&pid=10124#pid10124 RE: E-mail backup file - pioneersteffen - 02.11.2021 Many thanks. I changed the file name to .pdf and it is working fine now. RE: FTP backup file - Dré - 04.01.2022 (08.11.2016, 22:32)baggins Wrote:(19.10.2016, 17:58)PassivPluss Wrote: I get the following log thanks i use it for a small month for now. it did worked for me for 12 days without problems. after these days, i only get a backup of 0 Bytes. all is working again, i think there where to big pictures and my export was 25MB. But after this i didn't saw there is an issue. My question, is it possible to get an error when the backup is just 0 bytes or below 100kb? RE: E-mail backup file - admin - 04.01.2022 Line 42 is incorrect. It leads to old backups not being removed. It should be this: Code: os.execute('cd /home/ftp && rm -rf backup-*') RE: E-mail backup file - Dré - 04.01.2022 Thanks again, admin because vacation and try to make more scripts these week, and my LM who create bad backups. is it also possible to just make a backup from only the scripts on the LM and sent them with ftp? i know the option to make backup by 'Backup scripts' but maybe it is also possible to do it automatic? RE: E-mail backup file - icuzz - 09.02.2022 Hi, the latest E-mail backup script fails for me (error is nil) and still responds email send. Is there some kind of file size limit if using gmail? I have 17 logicmachines in one location and a few works (the backup file size is about 150 kb), but all the bigger ones (about 800kb) fail to send the mail. RE: E-mail backup file - admin - 10.02.2022 Gmail is blocking backup attachments because there is a .js file inside which they consider harmful. RE: E-mail backup file - icuzz - 10.02.2022 (10.02.2022, 08:15)admin Wrote: Gmail is blocking backup attachments because there is a .js file inside which they consider harmful. I know, but why some work? LMs have the latest stable firmware. RE: E-mail backup file - Dré - 22.03.2022 Yesterday i was logged in to my Wiser/LM i saw there all my backups still on my Wiser. The script is working, i got my backup on my FTP server, but the backups are also still on my Wiser, it looks like, they don't delete the backup files. my question is, is there something wrong with my clean up line? Code: --source: https://forum.logicmachine.net/showthread.php?tid=396&pid=2488#pid2488 RE: E-mail backup file - admin - 22.03.2022 Line 46 should be: Code: os.execute('cd /home/ftp && rm -rf Project-*') RE: E-mail backup file - Dré - 22.03.2022 Thanks Admin, now i see what is was going i\on, i changed the name, from Backup to Project, and with this rule, you delete is, but he couldn find the file. RE: E-mail backup file - manos@dynamitec - 24.11.2022 Hello Admin, Can this upload to ftp script be adjusted to save the file in an Azure blobstorage container? Account: xxxxxxxxxx@engweufileexchange.blob.core.windows.net Pass: xxxxxxxxx Thank you in advance for your reply. RE: E-mail backup file - admin - 24.11.2022 Azure doesn't support FTP so this example won't work. RE: E-mail backup file - manos@dynamitec - 24.11.2022 (24.11.2022, 07:52)admin Wrote: Azure doesn't support FTP so this example won't work. It is an SFTP. So is it possible to login to that account and save the backup? RE: E-mail backup file - admin - 24.11.2022 SFTP and FTP are completely different protocols. SFTP is file transfer over SSH. RE: E-mail backup file - manos@dynamitec - 25.11.2022 (24.11.2022, 09:38)admin Wrote: SFTP and FTP are completely different protocols. SFTP is file transfer over SSH. Thank you Admin fro your quick reply. So to conclude this is not possible then? The only way is to have a FTP server localy and upload the backup file right? RE: E-mail backup file - admin - 25.11.2022 It should be possible via Azure REST API but there are no examples for this. But using an FTP server is much easier. RE: E-mail backup file - manos@dynamitec - 07.12.2022 Hello All, I am trying to figure out how to send the backup file to more than one recipients using this script without success. How would this part of the script look like if I want to send the mail to two, three ... recipients? Code: --Recipient for e-mail Any input on the solution would be apreciated. Regards RE: E-mail backup file - admin - 08.12.2022 Use this: Code: to = { 'user1@example.com', 'user2@example.com', 'user3@example.com' } |