Re: Get 4D file(Last backup file) v17.4 returning wrong file path

2020-09-17 Thread B.Bippus via 4D_Tech
Thank you Dave, this nice piece of code one I needed just now. Bernd Am Di., 25. Aug. 2020 um 17:12 Uhr schrieb Dave Nasralla via 4D_Tech < 4d_tech@lists.4d.com>: > Just a followup. > Tech support has filed a bug for the issue. It's a command that not > many people use I'm guessing. I've just

Re: Get 4D file(Last backup file) v17.4 returning wrong file path

2020-08-25 Thread Dave Nasralla via 4D_Tech
Just a followup. Tech support has filed a bug for the issue. It's a command that not many people use I'm guessing. I've just started using it to move a 4D Backup to a BackBlaze folder once a week so it can be backed up on the weekend to the cloud. During the week, we just backup the daily journal

Re: Get 4D file(Last backup file) v17.4 returning wrong file path

2020-08-19 Thread Dave Nasralla via 4D_Tech
It turns out 3 out of 4 of my systems have this issue. The last backup path does show up correctly in the backup.xml file in the Preferences folder, but the command still fails. I’ve opened a case with Tech Support and have them a sample database. We’ll see what they find out. Thanks for your

Re: Get 4D file(Last backup file) v17.4 returning wrong file path

2020-08-18 Thread Keisuke Miyako via 4D_Tech
in v18 it is backupHistory.json, I think. https://doc.4d.com/4Dv18R3/4D/18-R3/Configuration-and-trace-files.300-4919427.en.html 2020/08/19 9:21、Dave Nasralla via 4D_Tech <4d_tech@lists.4d.com>のメール: This makes me think something got corrupt. Do you know where the

Re: Get 4D file(Last backup file) v17.4 returning wrong file path

2020-08-18 Thread Dave Nasralla via 4D_Tech
Thanks for the advice, Keisuke. The command seems to work in a blank database (just running it in a test method after doing a backup), but does not work in my main system in a test method. This makes me think something got corrupt. Do you know where the "Last backup file" path information is

Re: Get 4D file(Last backup file) v17.4 returning wrong file path

2020-08-18 Thread Keisuke Miyako via 4D_Tech
sidebar technically you should move your fresh 4BK file after On Backup Shutdown, not during, because 4D updates the backup history json file following the database event, and a missing backup file will trigger a runtime error. one way to avoid this is to start a new process and wait a little

Get 4D file(Last backup file) v17.4 returning wrong file path

2020-08-18 Thread Dave Nasralla via 4D_Tech
Hi, In my "On Backup Shutdown" method I wanted to copy the backup file to another disk. When I call "Get 4D file(Last backup file)" I get a file path to a very old backup. I get the same old path every time I do a backup. Am I missing something? Thanks, dave -- David Nasralla Clean Air