<?xml version="1.0" encoding="iso-8859-1"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="hub" href="https://pubsubhubbub.appspot.com/" />
<atom:link xmlns:atom="http://www.w3.org/2005/Atom" type="application/rss+xml" rel="self" href="http://backupforum.progforums.com/BackupForum/rss.php?tid=79" /> 
<title>Backup forum : IDrive : Common Room : Run a script before and after completion of IDrive backup</title>
<link>https://backupforum.progforums.com/BackupForum</link>
<description> Backup forum</description>
<language>en</language>
<docs>http://backend.userland.com/rss</docs>
<item>
<title>Run a script before and after completion of IDrive backup in IDrive : Common Room</title>
<link>https://backupforum.progforums.com/BackupForum/viewtopic.php?pid=234#p234</link>
<guid isPermaLink="false">234@https://backupforum.progforums.com/BackupForum</guid>
<description>Topic: Run a script before and after completion of IDrive backup

Message: This seems to work, adjust it for your needs:
Code:@echo off
Setlocal EnableDelayedExpansion

rem Pre-tasks...
rem
rem
echo Waiting for backup to start

:WaitForStart
timeout 10
tasklist | findstr &#34;idwutil_600.exe&#34;
if NOT &#34;!errorlevel!&#34; == &#34;0&#34; goto WaitForStart
echo Backup started

timeout 600
rem 10 minute wait here to allow &#34;Prepare file list&#34; to complete.

:WaitForFinish
timeout 10
tasklist | findstr &#34;idwutil_600.exe&#34;
if &#34;!errorlevel!&#34; == &#34;0&#34; goto WaitForFinish
echo Backup finished

rem Post-tasks...
rem
rem

endlocal
The reason for the 10 minute wait is because idwutil_600.exe starts when the Prepare file list begins, but seems to quit again a few seconds later, then doesn't run until the backup actually starts.You may need to play with this value.
</description>
<pubDate>Tue, 09 Jun 2020 13:03:34 +0100</pubDate>
</item>
<item>
<title>Run a script before and after completion of IDrive backup in IDrive : Common Room</title>
<link>https://backupforum.progforums.com/BackupForum/viewtopic.php?pid=233#p233</link>
<guid isPermaLink="false">233@https://backupforum.progforums.com/BackupForum</guid>
<description>Topic: Run a script before and after completion of IDrive backup

Message: bribri wrote:I've got my backups scheduled for 2am, so I could of course run something at 1:55am. But is there a way to automatically run a script after backup completes, rather than having to guess at when it might be done?
No need to guess when its done ;)When IDrive is running a backup, it uses a process called idwutil_600.exe, so the script you run at 01:55 could stay running and monitor that process until it disappears.tasklist | findstr &#34;idwutil_600.exe&#34;will return errorlevel of zero if the task is not running, so you could loop until that happens (with some sort of pause*, to avoid too many resources being used), then continue the rest of the script and perform the after-backup tasks.* depending on your version of Windows, you should have the timeout command, which will pause for the number of seconds you specify as a parameter.
</description>
<pubDate>Tue, 09 Jun 2020 01:27:02 +0100</pubDate>
</item>
<item>
<title>Run a script before and after completion of IDrive backup in IDrive : Common Room</title>
<link>https://backupforum.progforums.com/BackupForum/viewtopic.php?pid=232#p232</link>
<guid isPermaLink="false">232@https://backupforum.progforums.com/BackupForum</guid>
<description>Topic: Run a script before and after completion of IDrive backup

Message: Is it possible to run a script (BAT/CMD file) before or after the IDrive backup runs?I've got my backups scheduled for 2am, so I could of course run something at 1:55am. But is there a way to automatically run a script after backup completes, rather than having to guess at when it might be done?
</description>
<pubDate>Mon, 08 Jun 2020 22:49:52 +0100</pubDate>
</item>
</channel>
</rss>
