Libraryless. Click here for Pure Java version (18021L/131K).
!7 module DailyBackup > DynEnabled { S sendToMachines; visualize { ret centerAndSouthWithMargins(super.visualize(), withLabel("Send to machines:", dm_fieldTextField('sendToMachines))); } start { doEvery(60.0, 10*60.0, r doIt); } void doIt enter { if (!enabled || elapsedHours_timestamp(parseLongOpt(loadProgramTextFile("lastBackup"))) < 23.99) ret; saveProgramTextFile("lastBackup", str(now())); dm_action("Backing up JavaX-Data", r { final File f = zipAllDataDirs(); if (emptyAfterTrim(sendToMachines)) ret; dm_action("Sending backup to other machines", r { for (S computerID : possibleComputerIDs(javaTokC(sendToMachines))) pcall { dm_sendBackupFileToOtherMachine(f, computerID); } }); }); } }
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, jozkyjcghlvl, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020773 |
Snippet name: | Daily Backup of JavaX-Data |
Eternal ID of this version: | #1020773/7 |
Text MD5: | 3fe5376820c60464f3489af4aa2ff972 |
Transpilation MD5: | 97c6792d57a73897a86b6e644fd7a67b |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-01-02 01:15:30 |
Source code size: | 832 bytes / 29 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 293 / 6047 |
Version history: | 6 change(s) |
Referenced in: | #1020778 - Send All Backup Files To Other Machine |