Page 1 of 1

Triggering a backup via update notification

Posted: 01 May 2026 11:41
by Native2904
Hi,

I wanted to ask if is it possible to use the notification that an update is available to trigger a backup?

In other words: can that update prompt be used as a trigger to start a backup process beforehand?

1.Notification about available backup (Xyplorer)
2.Popup prompting to run a backup first
3.Once the backup is complete, the update can be started...

Thank you in advance

I thought I could capture the message using AutoHotkey’s Window Spy tool and trigger the backup when the notification appears… but the window doesn’t seem to have a unique suffix that would allow it to be reliably identified in isolation.

Re: Triggering a backup via update notification

Posted: 01 May 2026 15:39
by RalphM
In more than 21 years of updating XYPlorer (back then known under a different name) whenever a new version (beta or official) was available, I had to downgrade to the previous version two or three times because something wasn't quite right with the new version and the downgrade worked perfectly without the need for any backup, so honestly IMHO that wish is bordering on bloat. :whistle:

Re: Triggering a backup via update notification

Posted: 01 May 2026 18:26
by Horst
I make a ZPAQ deduplicating backup after every update.
This way there are all versions from the past available
without getting a large archive.

Re: Triggering a backup via update notification

Posted: 01 May 2026 20:11
by jupe
Instead of using the inbuilt update config setting and trying to read the dialog, you could just script the whole thing and add it to CEA Startup event or similar, below is a quick mock up (non working) you could adjust to suit your needs.

Code: Select all

 $v = readurl("https://www.xyplorer.com/version_beta.php?bit=64");
 if (compare($v, <xyver>, "v") == 1) {
   backupto;
   update 1;
 }

Re: Triggering a backup via update notification

Posted: 02 May 2026 08:37
by Native2904
2RalphM

I did not mean to insinuate anything negative about XYplorer.
But I would rather have a backup and not need it than need one and not have it.
I am still getting to know the program, and you are definitely 20 years ahead of me in experience 🤘💪✌️
But with Zpaq, these backups are done in hardly two breaths.

Thanks again to Horst for the references that helped make it possible.

Re: Triggering a backup via update notification

Posted: 02 May 2026 09:15
by Native2904
jupe wrote: 01 May 2026 20:11 Instead of using the inbuilt update config setting and trying to read the dialog, you could just script the whole thing and add it to CEA Startup event or similar, below is a quick mock up (non working) you could adjust to suit your needs.

Code: Select all

 $v = readurl("https://www.xyplorer.com/version_beta.php?bit=64");
 if (compare($v, <xyver>, "v") == 1) {
   backupto;
   update 1;
 }
thank you..

It works very well via the CEA startup… I’ll see if it bothers me in the future.

Code: Select all

 $v = readurl("https://www.xyplorer.com/version_beta.php?bit=64");
 if (compare($v, <xyver>, "v") == 1) {
   run '"C:\zpaq\Xyplorer_bck.bat"', wait=1;
   update 1;
 }

Re: Triggering a backup via update notification

Posted: 02 May 2026 09:22
by highend
Urgs...

Code: Select all

run '"C:\zpaq\Xyplorer_bck.bat"', wait=1;
You should read the help file regarding that command^^

Re: Triggering a backup via update notification

Posted: 02 May 2026 09:54
by Native2904
:oops: :oops: :oops:
I think i have found a hint..

Code: Select all

run "C:\Program Files\XYplorer\Readme.txt", , 1; //NO JOY
Now I finally understand all the commas in your scripts

Code: Select all

run '"C:\zpaq\Xyplorer_bck.bat"', , 1;

Re: Triggering a backup via update notification

Posted: 03 May 2026 00:35
by jupe
If you wanted to avoid the cmd window popping up every time, and assuming it is non-interactive, you could change the run to just this:

runret("C:\zpaq\Xyplorer_bck.bat");

which will take care of the wait too,

Re: Triggering a backup via update notification

Posted: 03 May 2026 01:51
by Native2904
jupe wrote: 03 May 2026 00:35 If you wanted to avoid the cmd window popping up every time, and assuming it is non-interactive, you could change the run to just this:

runret("C:\zpaq\Xyplorer_bck.bat");

which will take care of the wait too,
At first, I thought about adding the backup command to the script... but as it worked straight away with the command... I put that idea aside for the time being, as I didn’t know enough about it.

Code: Select all

@echo off
chcp 65001 >nul

set ZPAQ=C:\zpaq\zpaqfranzhw.exe
set ARCHIVE=c:\Users\Home\OneDrive\Apps\XYPlorerSync\XYPlorer.zpaq
set SOURCE=C:\Xyplorer
set LOG=C:\zpaq\logs\Xyplorer.log


echo XYPlorer Backup läuft...

"%ZPAQ%" add "%ARCHIVE%" "%SOURCE%" -not "%SOURCE%\*.db" >> "%LOG%" 2>&1

start "" "C:\tcmd\TOTALCMD64.EXE" /S=L "%LOG%"

echo Fertig

exit

I wouldn’t even know how to incorporate all the dependencies and parameters into the script.

XYplorer’s scripting language is my final boss.

Re: Triggering a backup via update notification

Posted: 03 May 2026 02:22
by jupe
Yes I had already assumed the reason you were using a bat file, that is why I suggested to use runret in my last post so that you could avoid the cmd window without having to convert the bat to a script, because in the end the outcome is the same.