Job after backup
I would like to run a program after (post) the backup is done. I need to know the filename of the just created backup.
Is this name stored in any variable in order to use on the command line for my command?
Thanks in advance,
Sigurd
Thanks for your answers. I write a powershell script.


- Log in to post comments

Sigurd,
After the backiup is completed, RIGHT click on the task name (main menu-upper left corner) used to initiate the backup.
Clicking the task will open the options and click on the "open locations" option.
The storage folder will open and display all the backups created by that particular task.
- Log in to post comments

I am afraid I did not describe the issue detailled enough.
Acronis generates a new file name each time a backup is done. Example:
Weekly3_full_b2_s1_v1.tib
Weekly3_full_b3_s1_v1.tib
Weekly3_full_b4_s1_v1.tib
My questions: How could I easily put in the generated backup into my command argument in post backup operation?
- Log in to post comments

iF you have email notification enabled, following the backup, an email will be sent to your designated email address and the email will indicate whether the backup succeeded or failed, plus the email will contain the name and path of the just finished backup file.
I don't know how you could "easily" do a query to get the name information you wanted but it would be possible to search the log file and get the name information of the backup just completed; or it might also be possible to query the backup storage folder and get that information, but it would take a proficient programmer to do this.
- Log in to post comments

If your backup scheme is that simple, you already know what the file output name is going to be after each creation (it's basically just changing the B's and will keep counting up)
Weekly3_full_b2_s1_v1.tib
Weekly3_full_b3_s1_v1.tib
Weekly3_full_b4_s1_v1.tib
However, let's say it is a bit more complicated, but what is the ultimate goal of having the file name? Depending on what you are hoping to accomplish, there may be a better solution than what you're looking for, but we don't really know what you hope to accompish by just having the name.
Automatic Cleanup of older files? There a batch scripts or scheduled tasks that can do that based upon file dates or # of files in directory so the name may be irrelevant. Wanting to copy it elsewhere, robocopy scripts are easy to create too to copy, delete, mirror etc adn can be set as scheduled tasks either on a timed job or after a specific action.
If you really just want to know the created file name just output the directory files to a text file. In this example, we'll simulate that your tib's are going to a directory called TIBS which is lcoated on the root of your C: Drive (C:\TIBS). You will do a simple "Dir" command which outputs the files in that directory. Instead os sending them to the command prompt screen, we'll write them to a txt file for easy viewing using the "<" command and then pointing it to the text file desired... "C:\TIBSOutput.txt" in this case. The "/O-D" just tells it to write the files in reverse order based upon the date (newest to oldest since it would normally write oldest to newest).
That way, every time you run the command, the latest .tibs are written at the top of the list and the oldest at the bottom so that you can always tell what the most recent version is at the top. You could then save this script as a .bat file and create a scheduled task to run it everytime an Acronis job completes or something is added to that directory. But since we don't know the goal of having this information, I'm not sure if this is helpful or not based upon why you need the file name or how it will be used.
C:\>dir /O-D /TC c:\TIBS > C:\TIBSOutput.txt
So when I run the command above (after I have created some test .tib files int the "C:\Tibs directory", this is the output (with the most recently created .tib file at the top of the list).
Volume in drive C is HD1_250GB_Local_EVO850
Volume Serial Number is 76FD-9A17
Directory of c:\Test
01/07/2016 07:09 PM 0 test6.tib
01/07/2016 07:07 PM 0 test4.tib
01/07/2016 07:07 PM 0 test5.tib
01/07/2016 07:05 PM 0 test3.tib
01/07/2016 07:05 PM 0 test2.tib
01/07/2016 07:05 PM 0 test1.tib
01/07/2016 07:04 PM <DIR> ..
01/07/2016 07:04 PM <DIR> .
6 File(s) 0 bytes
2 Dir(s) 160,959,778,816 bytes free
- Log in to post comments