Direkt zum Inhalt

Can I run a Command ONLY when the initial FULL backup is done or Cleanup is done?

Thread needs solution

Assume an Incremental backup Scheme

Full, Inc1, Inc2, etc.  

And that it's set to keep 2 

 

I'd like to run a command to copy the *full*.tib  file to another location when either:

1. The full backup is done the first time

2. Right before Cleanup is done

 

I see that there is a Pre/Post command option but that seems to run on EVERY backup.

0 Users found this helpful

Clay, you should be able to do this by using the Pre/Post Command option but you will need to write a batch command file to test for the conditions that you want to test for.

I do not believe that you can call the command before cleanup as this only takes place after a successful backup has completed and is a part of the backup task execution, hence you can only run a command either before the task starts (using a Pre command) or after the task has completed using a Post command.

using robocopy with the /MIR switch, you should be able to exclude any files with "inc" in the name for a particular folder.  Robocopy will only copy files to the destination if they are newer on the source... so, technically, even though the command would run after every backup only new full's would get copied over to the second destination locatoin.  

example:  robocopy "SourceFolder" "DestinationFolder" /R:0 /W:0 /MIR /XF *_inc_*.tib

If not familiar with robocopy, grab a free sync application and you can do this with a GUI too.  I have not used the sync function of Acronis 2017, but I'm guessing you could create a sync job for this too (assuming you can filter our so that only full's get sync'd - I'm not sure sicne I have not tried.  If not, then allwaysync, goodsync, and other free products should be able to do this too - just seperate from Acronis.