Skip to main content

how can I start backup from batch file

Thread solved

It seems ACPHO has completely changed in internals as all the old topics about how to start a backup from batch file don't work anymore.

Can someone please provide some insight on how this can be achieved with ACPHO and please don't tell me it's another thing that Acronis has removed in the new version as this would mean I have to leave Acronis once and for all and look from a more sophisticated software that doesn't remove more and more features for home users. It has been Acronis True Image for Home Users that made you big when Acronis started it's business and now I more and more read "this is only available in business version", although it was a feature that previously existed.

0 Users found this helpful
frestogaslorastaswastavewroviwroclolacorashibushurutraciwrubrishabenichikucrijorejenufrilomuwrigaslowrikejawrachosleratiswurelaseriprouobrunoviswosuthitribrepakotritopislivadrauibretisetewrapenuwrapi
Posts: 2
Comments: 1727

Hello Marc!

That wasn't removed from the program.

You can run pre-post commands (batch files).

Please follow this user guide: https://www.acronis.com/en-us/support/documentation/ATI2024/#3408.html#kanchor291

If you have any questions during the process, please contact our support at https://kb.acronis.com/content/8153.

Thanks in advance!

Jose Pedro Magalhaes wrote:

Hello Marc!

That wasn't removed from the program.

You can run pre-post commands (batch files).

Please follow this user guide: https://www.acronis.com/en-us/support/documentation/ATI2024/#3408.html#kanchor291

If you have any questions during the process, please contact our support at https://kb.acronis.com/content/8153.

Thanks in advance!

Hi Jose,

That was not what I asked for. I know that I can run batch files for pre/post commands and that it's has not been removed.

I was asking about how to start a backup job from a batch file. This used to work in older versions of TI but as internals have changed the old forum articles that did apply previously don't work anymore for the current version. How can I do this?
 

frestogaslorastaswastavewroviwroclolacorashibushurutraciwrubrishabenichikucrijorejenufrilomuwrigaslowrikejawrachosleratiswurelaseriprouobrunoviswosuthitribrepakotritopislivadrauibretisetewrapenuwrapi
Posts: 2
Comments: 1727

Marc Elser wrote:
Jose Pedro Magalhaes wrote:

Hello Marc!

That wasn't removed from the program.

You can run pre-post commands (batch files).

Please follow this user guide: https://www.acronis.com/en-us/support/documentation/ATI2024/#3408.html#kanchor291

If you have any questions during the process, please contact our support at https://kb.acronis.com/content/8153.

Thanks in advance!

Hi Jose,

That was not what I asked for. I know that I can run batch files for pre/post commands and that it's has not been removed.

I was asking about how to start a backup job from a batch file. This used to work in older versions of TI but as internals have changed the old forum articles that did apply previously don't work anymore for the current version. How can I do this?
 

This option is not available for backups that use Acronis Cloud as a backup destination. Perhaps this is what's happening.

For regular local backups, you just need to follow the instructions described here:

  1. Select the "Use custom commands" checkbox.
  2. Choose a command to be executed before the backup process starts in the "Pre-command" field. To create a new command or select a new batch file, click the "Edit" button.

As mentioned above, if you have any questions during the process, please contact our support at https://kb.acronis.com/content/8153.

Thanks in advance!

 

Marc, the old instructions still work but the program path details have changed with ACPHO - see example of a batch file below:

@echo off
set ACPHO="C:\Program Files (x86)\Common Files\Acronis\CyberProtectHomeOffice\CyberProtectHomeOfficeNotify.exe"
rem task1=Drive-D-to-S
set task1=70D75420-9D6D-4727-8412-84C56B257B59
%ACPHO% /script:%task1%
exit /b 0

Jose, a new KB document needs to be created for this topic or else KB 47143: Acronis True Image: How to run backups from Command Line needs to have a new section added to cover ACPHO plus ATI 2019 expanded to include 2018 thru' 2021 for the same instructions.

frestogaslorastaswastavewroviwroclolacorashibushurutraciwrubrishabenichikucrijorejenufrilomuwrigaslowrikejawrachosleratiswurelaseriprouobrunoviswosuthitribrepakotritopislivadrauibretisetewrapenuwrapi
Posts: 2
Comments: 1727

Steve Smith wrote:

Marc, the old instructions still work but the program path details have changed with ACPHO - see example of a batch file below:

@echo off
set ACPHO="C:\Program Files (x86)\Common Files\Acronis\CyberProtectHomeOffice\CyberProtectHomeOfficeNotify.exe"
rem task1=Drive-D-to-S
set task1=70D75420-9D6D-4727-8412-84C56B257B59
%ACPHO% /script:%task1%
exit /b 0

Jose, a new KB document needs to be created for this topic or else KB 47143: Acronis True Image: How to run backups from Command Line needs to have a new section added to cover ACPHO plus ATI 2019 expanded to include 2018 thru' 2021 for the same instructions.

Hello!

I have informed the team.

I doubt the Knowledge Base will be updated for any version apart from integrating Acronis Cyber Protect Home Office. Usually, they test it before releasing the KBs, and with all the previous versions being outdated, it's likely that if a new KB comes out, it will be just for the latest version.

However, in this thread, I can see that Marc uses the cloud, and the batch isn't compatible with that for consumer products.

Best regards.

However, in this thread, I can see that Marc uses the cloud, and the batch isn't compatible with that for consumer products.

Sorry Jose, but the above is not correct.  I have tested my script with both local and Cloud backups and both work just fine provided the correct backup script identifier is used.  I run the batch command as Administrator.

frestogaslorastaswastavewroviwroclolacorashibushurutraciwrubrishabenichikucrijorejenufrilomuwrigaslowrikejawrachosleratiswurelaseriprouobrunoviswosuthitribrepakotritopislivadrauibretisetewrapenuwrapi
Posts: 2
Comments: 1727

Steve Smith wrote:

However, in this thread, I can see that Marc uses the cloud, and the batch isn't compatible with that for consumer products.

Sorry Jose, but the above is not correct.  I have tested my script with both local and Cloud backups and both work just fine provided the correct backup script identifier is used.  I run the batch command as Administrator.

Hello! 

I am stating what's mentioned in our official documentation.

** 

Location: Options > Advanced > Pre/Post commands

This option is not available for the backups that use Acronis Cloud as a backup destination. **

 

Please check this user-guide: https://www.acronis.com/en-us/support/documentation/ATI2024/#3408.html#…

Thanks.

Jose, sorry but you are referencing something very different with regards to Pre / Post Commands - I fully agree that they are not available for Cloud backups but this topic is not about them at all.

The OP of this topic was asking about launching an Acronis backup task without using the main GUI or the Acronis Scheduler instead by running a Windows batch command from either a command window or else using the Windows Task Scheduler.

The script I referenced above copied below is not to be used with a Pre or Post Command but launched as a separate .BAT file from within Windows.

@echo off
set ACPHO="C:\Program Files (x86)\Common Files\Acronis\CyberProtectHomeOffice\CyberProtectHomeOfficeNotify.exe"
rem task1=Drive-D-to-S
set task1=70D75420-9D6D-4727-8412-84C56B257B59
%ACPHO% /script:%task1%
exit /b 0

 

Steve Smith wrote:

Jose, sorry but you are referencing something very different with regards to Pre / Post Commands - I fully agree that they are not available for Cloud backups but this topic is not about them at all.

The OP of this topic was asking about launching an Acronis backup task without using the main GUI or the Acronis Scheduler instead by running a Windows batch command from either a command window or else using the Windows Task Scheduler.

The script I referenced above copied below is not to be used with a Pre or Post Command but launched as a separate .BAT file from within Windows.

@echo off
set ACPHO="C:\Program Files (x86)\Common Files\Acronis\CyberProtectHomeOffice\CyberProtectHomeOfficeNotify.exe"
rem task1=Drive-D-to-S
set task1=70D75420-9D6D-4727-8412-84C56B257B59
%ACPHO% /script:%task1%
exit /b 0

Hi Steve, you're completely right. I was asking about how to launch a backup task through batch command. Indeed I do want to use Pre/Post commands to launch the batch file to have 2 backups running in sequence. As they have different settings I cannot combine them.

Additionally I never wrote that I use cloud as destination, I don't know where this misinformation was coming from.

The only missing part that I had to figure out apart from the batch file that you provided is where to get the TASKID from. But assuming that the Path changes are also similar for where the Scripts are stored I found them here:

C:\programdata\Acronis\CyberProtectHomeOffice\Scripts

So, together with the batch file provided it should be working now. Thank you very much. I marked you post as solution 

 

Marc, If you want to run two backups in sequence you can simply make two calls to ACPHO with the /script parameter one right after the other in your batch file. The first backup will start and the second will be queued.No need to try to sequence them with pre/post commands.

Also, the MVP Assistant can make it very easy to get the correct task ID for the backup task.