Feature Request - Run script at end of backup job

Backup agent for Microsoft Windows servers and workstations (formerly Veeam Endpoint Backup FREE)

Feature Request - Run script at end of backup job

Veeam Logoby mattb » Wed Jan 07, 2015 8:52 pm 1 person likes this post

It would be nice to be able to run a script at the end of a backup job. This or have a backup copy feature. The idea for me would be able to automatically copy the backup to another location.
mattb
Lurker
 
Posts: 1
Liked: 1 time
Joined: Fri Nov 02, 2012 7:13 pm
Full Name: Matt Brummel

Re: Feature Request - Run script at end of backup job

Veeam Logoby Mike Resseler » Thu Jan 08, 2015 6:48 am

Hi Matt,

We have received this feature request a few times. I don't believe it will be possible in v1, but this is definitively something we will keep in mind when planning v2. As for v1, in GA, you will be able to backup to a Veeam B&R repository (as target) and from there on you can use a backup copy to put it on another repository, tape, through Cloud Connect to a service provider... So at that moment, the options become endless :-)

Hope it helps

Brgds,

Mike
Mike Resseler
Veeam Software
 
Posts: 3150
Liked: 362 times
Joined: Fri Feb 08, 2013 3:08 pm
Location: Belgium, the land of the fries, the beer, the chocolate and the diamonds...
Full Name: Mike Resseler

Re: Feature Request - Run script at end of backup job

Veeam Logoby CharlieKPoland » Fri Jan 09, 2015 1:52 pm

I ask for the same. I want to wake up with BIOS my PC at 10pm in the evening, make Veeam Endpoint Backup and I would like to have script after the end like "shutdown -s - t 10" which would switch off my machine to the morning. Energy is more and more expensive, so there is no economical reason to have it swithed on 24 hours.
CharlieKPoland
Influencer
 
Posts: 15
Liked: never
Joined: Sun Dec 28, 2014 11:29 am

Re: Feature Request - Run script at end of backup job

Veeam Logoby Theepan » Sat Jan 10, 2015 1:46 pm

I second this feature request as well.

Matt and CharlieKPoland, if you need a quick and dirty way to achieve this right now, you can do this by creating a task in Task Scheduler that triggers on event id 190 in EventLog:

Trigger: On an event

    Log: Veeam Backup
    Source: Veeam EP
    Event ID: 190
Action: Start a program


Also if you need to retrieve the status of the backup, extract "Level" from the latest entry of event id 190 from the same source as above.

I use the following commands from a batch script to (very primitively) retieve the status:
Code: Select all
powershell -c "Get-EventLog -LogName """Veeam Backup""" -Newest 1 -Source """Veeam EP""" -InstanceId 190 | fl | Out-File "C:\Temp\VEB_status.log"
set BACKUP_STATUS=Unknown
type "C:\Temp\VEB_status.log" | find /i "EntryType" | find /i "Error" && set BACKUP_STATUS=Failed
type "C:\Temp\VEB_status.log" | find /i "EntryType" | find /i "Information" && set BACKUP_STATUS=Success

The variable BACKUP_STATUS should now contain backup status. I haven't seen any EntryType=Warning yet, so I do not check for it.
The file C:\Temp\VEB_status.log should contain the log (with details on error).

It would be easier to do it all in Powershell, but our backup reporting infrastructure is in batch :D
Theepan
Novice
 
Posts: 3
Liked: never
Joined: Tue Dec 23, 2014 1:41 pm
Full Name: Kantheepan Rajaratnam

Re: Feature Request - Run script at end of backup job

Veeam Logoby Mike Resseler » Sat Jan 10, 2015 2:08 pm

Hehehe,

With guys like you all on our forums, why should we do any programming ;-)

But yeah, we heard you all loud and clear. I don't think it will be in v1, but we will put this certainly on the table for v2

Cheers

Mike
Mike Resseler
Veeam Software
 
Posts: 3150
Liked: 362 times
Joined: Fri Feb 08, 2013 3:08 pm
Location: Belgium, the land of the fries, the beer, the chocolate and the diamonds...
Full Name: Mike Resseler

Pre / Post Task to backup

Veeam Logoby jeancharles » Wed Jan 14, 2015 1:51 pm 1 person likes this post

Hi,

After looking at the TrueCrypt topic, I was thinking it would be interesting to have pre / post task scripts to backup.

for TC partitions for example :

automate dismounting/changing time of TC container,
and after backup launched remount TC container.
jeancharles
Enthusiast
 
Posts: 41
Liked: 3 times
Joined: Tue Dec 27, 2011 9:55 am
Full Name: Jean-Charles DEMARQUE

Re: Feature Request - Run script at end of backup job

Veeam Logoby frakka » Thu Jan 15, 2015 11:21 am

mattb wrote:It would be nice to be able to run a script at the end of a backup job.


May be useful also for us.
frakka
Novice
 
Posts: 3
Liked: never
Joined: Thu Jan 15, 2015 11:13 am
Full Name: Matteo Fracassetti

Re: Feature Request - Run script at end of backup job

Veeam Logoby Mike Resseler » Sat Jan 17, 2015 7:27 am

Hi guys,

As I stated above, it won't be in v1, but we are looking at it for further versions. Please keep those use-cases coming. The TrueCrypt topic is a great example of what we like to see where you would want to use the pre and post scripts for... Keep those use-cases coming ;-)

Cheers

Mike
Mike Resseler
Veeam Software
 
Posts: 3150
Liked: 362 times
Joined: Fri Feb 08, 2013 3:08 pm
Location: Belgium, the land of the fries, the beer, the chocolate and the diamonds...
Full Name: Mike Resseler

Re: Feature Request - Run script at end of backup job

Veeam Logoby hld123 » Wed Mar 25, 2015 9:59 am

Being able to run scripts before and after would be great.

Here is another example of what we do....

send Wake on LAN to Synology NAS
wait for ping response from nas
ssh into nas
mount encrypted filesystem
backup to encrypted filesystem
unmount encrypted filesystem
shutdown nas
hld123
Influencer
 
Posts: 10
Liked: never
Joined: Tue Mar 17, 2015 11:50 am

Re: Feature Request - Run script at end of backup job

Veeam Logoby Dima P. » Thu Mar 26, 2015 12:47 pm

hld123,
I wonder if your scenario can be accomplished by windows task scheduler and Endpoint daily backup schedule :wink:
Dima P.
Veeam Software
 
Posts: 6231
Liked: 439 times
Joined: Mon Feb 04, 2013 2:07 pm
Location: SPb
Full Name: Dmitry Popov

Re: Feature Request - Run script at end of backup job

Veeam Logoby hld123 » Thu Mar 26, 2015 9:00 pm

we only want the nas online and open as long as backup takes.
so would need to....
1. kickoff script1 giving enough time to complete ready for veeam to start
2. wait until veeam starts (unless it can be started via command line?)
3. run script two after backup finished, either estimate or watch event log for veeam finish

we've used acronis in past which simply lets you runs a batchfile/script before and after
backup.

(script1 start)
send Wake on LAN to Synology NAS
wait for ping response from nas
ssh into nas
mount encrypted filesystem
(script1 end)

now run - Veeam endpoint backup to NAS

(script2 start)
backup to encrypted filesystem
unmount encrypted filesystem
shutdown nas
(script2 end)
hld123
Influencer
 
Posts: 10
Liked: never
Joined: Tue Mar 17, 2015 11:50 am

Re: Feature Request - Run script at end of backup job

Veeam Logoby Dima P. » Sun Mar 29, 2015 2:19 pm

Got it – thank you. In the existing version the only possible workaround is to use a pre job script thru the task scheduler before the daily scheduled backup. Task scheduler could initiate post job script as well – you could triggered it based on the windows event generated by Endpoint on successful backup. The list of the events will be available with the GA reslease.
Dima P.
Veeam Software
 
Posts: 6231
Liked: 439 times
Joined: Mon Feb 04, 2013 2:07 pm
Location: SPb
Full Name: Dmitry Popov

Re: Feature Request - Run script at end of backup job

Veeam Logoby apronk » Wed Apr 08, 2015 1:54 pm

Post-script would help, here we have a lot of clients that have local Oracle databases.
Since Veeam Backup fails if ARCHIVELOG is not enabled, we have to enable it.
This in turns generates a lot of log files, so it would be nice to set a script to delete them after the backup finishes.
apronk
Enthusiast
 
Posts: 59
Liked: 6 times
Joined: Mon Mar 23, 2015 2:47 pm
Full Name: Arend Pronk

Re: Feature Request - Run script at end of backup job

Veeam Logoby Dima P. » Wed Apr 08, 2015 4:05 pm

Arend,
You want to trigger post job script only? Would triggering the scrip via task scheduler work for your case?
Dima P.
Veeam Software
 
Posts: 6231
Liked: 439 times
Joined: Mon Feb 04, 2013 2:07 pm
Location: SPb
Full Name: Dmitry Popov

Re: Feature Request - Run script at end of backup job

Veeam Logoby Vitaliy S. » Wed Apr 08, 2015 5:53 pm

apronk wrote:Since Veeam Backup fails if ARCHIVELOG is not enabled, we have to enable it.

Can you please give us a bit more info on this? What does exactly fail and what's the error message?
Vitaliy S.
Veeam Software
 
Posts: 19539
Liked: 1097 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Next

Return to Veeam Agent for Windows



Who is online

Users browsing this forum: No registered users and 21 guests