Triggering a backup via update notification
-
Native2904
- Posts: 132
- Joined: 23 Apr 2025 18:48
- Location: Aachen
Triggering a backup via update notification
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.
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.
Lts. 64-bit XY-Port. ƒ JetBrainsMono @ Windows 11 Pro 24H2 ▣ 1920x1080 ⇵ 115%
Glückauf
Glückauf
-
RalphM
- Posts: 2086
- Joined: 27 Jan 2005 23:38
- Location: Cairns, Australia
Re: Triggering a backup via update notification
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. 
Ralph 
(OS: W11 25H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)
(OS: W11 25H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)
-
Horst
- Posts: 1374
- Joined: 24 Jan 2021 12:27
- Location: Germany
Re: Triggering a backup via update notification
I make a ZPAQ deduplicating backup after every update.
This way there are all versions from the past available
without getting a large archive.
This way there are all versions from the past available
without getting a large archive.
Windows 11 Home, Version 25H2 (OS Build 26200.8457)
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1412b (x64), Everything Toolbar 2.3.0, Listary Pro 6.3.6.99
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1412b (x64), Everything Toolbar 2.3.0, Listary Pro 6.3.6.99
-
jupe
- Posts: 3446
- Joined: 20 Oct 2017 21:14
- Location: Win10 22H2 120dpi
Re: Triggering a backup via update notification
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;
}-
Native2904
- Posts: 132
- Joined: 23 Apr 2025 18:48
- Location: Aachen
Re: Triggering a backup via update notification
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.
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.
Lts. 64-bit XY-Port. ƒ JetBrainsMono @ Windows 11 Pro 24H2 ▣ 1920x1080 ⇵ 115%
Glückauf
Glückauf
-
Native2904
- Posts: 132
- Joined: 23 Apr 2025 18:48
- Location: Aachen
Re: Triggering a backup via update notification
thank you..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; }
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;
}Lts. 64-bit XY-Port. ƒ JetBrainsMono @ Windows 11 Pro 24H2 ▣ 1920x1080 ⇵ 115%
Glückauf
Glückauf
-
highend
- Posts: 14923
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Triggering a backup via update notification
Urgs...
You should read the help file regarding that command^^
Code: Select all
run '"C:\zpaq\Xyplorer_bck.bat"', wait=1;One of my scripts helped you out? Please donate via Paypal
-
Native2904
- Posts: 132
- Joined: 23 Apr 2025 18:48
- Location: Aachen
Re: Triggering a backup via update notification
I think i have found a hint..
Code: Select all
run "C:\Program Files\XYplorer\Readme.txt", , 1; //NO JOYCode: Select all
run '"C:\zpaq\Xyplorer_bck.bat"', , 1;Lts. 64-bit XY-Port. ƒ JetBrainsMono @ Windows 11 Pro 24H2 ▣ 1920x1080 ⇵ 115%
Glückauf
Glückauf
-
jupe
- Posts: 3446
- Joined: 20 Oct 2017 21:14
- Location: Win10 22H2 120dpi
Re: Triggering a backup via update notification
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:
which will take care of the wait too,
runret("C:\zpaq\Xyplorer_bck.bat");which will take care of the wait too,
-
Native2904
- Posts: 132
- Joined: 23 Apr 2025 18:48
- Location: Aachen
Re: Triggering a backup via update notification
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
exitI wouldn’t even know how to incorporate all the dependencies and parameters into the script.
XYplorer’s scripting language is my final boss.
Lts. 64-bit XY-Port. ƒ JetBrainsMono @ Windows 11 Pro 24H2 ▣ 1920x1080 ⇵ 115%
Glückauf
Glückauf
-
jupe
- Posts: 3446
- Joined: 20 Oct 2017 21:14
- Location: Win10 22H2 120dpi
Re: Triggering a backup via update notification
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.
XYplorer Beta Club