Skip to main content

Backup hourly, but only during office hours

Thread solved

Hello,

Is it possible to backup hourly for example between 08:00 - 16:00 and then start again the next day? And exclude weekends?

Thank you.

0 Users found this helpful

Niclas, welcome to these public User Forums.

What you ask is not possible when using the Schedule options within the ATI 2020 GUI for any backup task.

It could be done by using the Windows Task Scheduler to launch the backup task but looking at the options there does not give such an option either, though you could use the option to run only when the user is logged in, assuming that the user works between those hours only and not at weekends.

If neither of the above are possible, then you would need to use a batch or Powershell script program to achieve the desired backup schedule or else check whether the Acronis Business product applications can give you the options you want.

Niclas, there are two possible options that can be used here.

You could use a simple Pre Command for the backup task that returns an error if not within the set period for backup execution.  The downside of using this approach is that by returning an error, the backup task is shown as failed in the ATI GUI and if the Options > Advanced > Error handling options are not turned off, the failed backup will be retried at least 5 times!

The second option is to launch the backup via the Windows Task Scheduler and set separate Triggers to repeat the backup each hour for the period you want. 
To do this, create a Windows Batch command file as below:

File name: LaunchATItask.bat

@echo off
set ATI="C:\Program Files (x86)\Acronis\TrueImageHome\TrueImageLauncher.exe"
set task=0B7AB813-A299-4D31-9978-440DA6169F8F

%ATI% /script:%task%

The task identifier is found by looking in C:\ProgramData\Acronis\TrueImageHome\Scripts folder and opening the .tib.tis files located there.  At the top of the file you will see similar to below for one of my backup tasks:

<?xml version="1.0" encoding="UTF-8"?>
-<batch>
<version>1.0</version>
<uuid>0B7AB813-A299-4D31-9978-440DA6169F8F</uuid>
<display>Seagate-PE</display>

The task name is inside the <display> brackets, the identifier inside <uuid> brackets.

From that point, you would need to launch the Windows Task Scheduler, create a new task using the LaunchATItask.bat as the program to launch, then set Triggers for this new task.

Thanks a lot Steve! Excellent answer. Although I haven't tried it yet, I think Windows Task Scheduler is the way to go. Thanks again!