Re: Function to return the date/time of the next scheduled backup

2017-07-13 Thread David Adams via 4D_Tech
This is what I've been using, is it incomplete? (Just the one line here, obviously there's more to the method): *GET BACKUP INFORMATION*(Next backup date;$date_pointer->;$time_pointer->) ** 4D Internet Users Group (4D iNUG) FAQ:

AW: Function to return the date/time of the next scheduled backup

2017-07-13 Thread Flury Olivier via 4D_Tech
Not directly out of a Backup.xml file, but GET BACKUP INFORMATION also returns the date for the next scheduled backup: http://doc.4d.com/4Dv14/4D/14.4/GET-BACKUP-INFORMATION.301-2511955.en.html -Ursprüngliche Nachricht- Von: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] Im Auftrag von

Re: Function to return the date/time of the next scheduled backup

2017-07-12 Thread Tony Ringsmuth via 4D_Tech
Hey Chuck. I parse, and read, and write the contents of Backup.xml file all the time. However, the calculation as to when the next backup should be is somewhat complex: may take a few hours to code: if you want to be right: Consider scenarios like: Every Tuesday and Friday at 10PM And

Re: Function to return the date/time of the next scheduled backup

2017-07-12 Thread Herr Alexander Heintz via 4D_Tech
have a look at my blog post: http://blog.heintz.net/to-backup-or-not-to-backup/ should do what you are looking for, the command ScheduleObject:=BACKUP_GetSchedule(xmlBupReference) should help here cheers Alex > Am 12.07.2017 um 22:42

Re: Function to return the date/time of the next scheduled backup

2017-07-12 Thread Charles Miller via 4D_Tech
I have not but it would appear that you would first open the xml get last backup date and time The get backup frequency and perform a calculation I do not think backup save next date in the xml Hope this helps chuck On Wed, Jul 12, 2017 at 4:42 PM, Tony Ringsmuth via 4D_Tech <

Function to return the date/time of the next scheduled backup

2017-07-12 Thread Tony Ringsmuth via 4D_Tech
Does anyone have code that correctly calculates, from the /preferences/Backup.xml file, the Date/Time of the next scheduled 4D Backup? If so, could you please share it? Thanks! -- Tony Ringsmuth Business Brothers Inc. 763-420-8686