run a script after replication finished on DRsite

Availability for the Always-On Enterprise

run a script after replication finished on DRsite

Veeam Logoby baber » Sat Sep 23, 2017 10:14 am

Dear all
Hi

i want replicate a windows machine but want when replication has been finished it automatically run a script on replica machine that is on my DR site can i do it with veeam?
because in guest processing step when select application button in script tab can select pre-freeze script and post-thaw script but each of them i select and put scripy in that script not excute successfull and replication not do

what is problem???


BR
baber
Expert
 
Posts: 141
Liked: never
Joined: Thu Nov 21, 2013 12:02 pm
Full Name: Babak Saedi nejad

Re: run a script after replication finished on DRsite

Veeam Logoby Shestakov » Sat Sep 23, 2017 10:02 pm

Hi,
have you tried to run script as post-job activity?
Shestakov
Veeam Software
 
Posts: 5034
Liked: 419 times
Joined: Wed May 21, 2014 11:03 am
Location: Saint Petersburg
Full Name: Nikita Shestakov

Re: run a script after replication finished on DRsite

Veeam Logoby baber » Sun Sep 24, 2017 11:07 am

thanks
but i want that script run on replica machine on DRsite not on backup server i don't want run script on veeam server for example i have a vm that name is sql on product site i create a replica job from my sql vm on DR site and that's name on Drsite is sql-replica i want that script run on sql-replica vm

how can do that??
baber
Expert
 
Posts: 141
Liked: never
Joined: Thu Nov 21, 2013 12:02 pm
Full Name: Babak Saedi nejad

Re: run a script after replication finished on DRsite

Veeam Logoby PTide » Sun Sep 24, 2017 6:50 pm

Hi,

The script won't run because the replica is not started. If you start it while the original VM is still running then you might end up with MAC conflict between both VMs.
First of all, would you please tell what exactly do you want the script to do on the DR VM?

Thanks
PTide
Veeam Software
 
Posts: 3147
Liked: 262 times
Joined: Tue May 19, 2015 1:46 pm

Re: run a script after replication finished on DRsite

Veeam Logoby baber » Mon Sep 25, 2017 5:14 am

i have a script that copy some files from drive C to drive D i want run this script while my replica machine has been power on on DRsite (sql_replica)

BR
baber
Expert
 
Posts: 141
Liked: never
Joined: Thu Nov 21, 2013 12:02 pm
Full Name: Babak Saedi nejad

Re: run a script after replication finished on DRsite

Veeam Logoby PTide » Mon Sep 25, 2017 9:17 am

It's not quite clear whether you want the script to start right after you failover to DR, or you want it to copy files right after the replication process is finished?

Thanks
PTide
Veeam Software
 
Posts: 3147
Liked: 262 times
Joined: Tue May 19, 2015 1:46 pm

Re: run a script after replication finished on DRsite

Veeam Logoby baber » Mon Sep 25, 2017 9:24 am

i want copy files from C drive to D drive on replica machine on DRsite after replica machine (sql_replica) has been power on

BR
baber
Expert
 
Posts: 141
Liked: never
Joined: Thu Nov 21, 2013 12:02 pm
Full Name: Babak Saedi nejad

Re: run a script after replication finished on DRsite

Veeam Logoby PTide » Mon Sep 25, 2017 9:58 am

Then try to place a startup script inside the original VM that checks MAC address of the VM. If the address is the same as on the original VM then the script should just exit. If MAC is different then it would imply that it is running inside a replica thus it should start copying files from C to D.

Thanks.
PTide
Veeam Software
 
Posts: 3147
Liked: 262 times
Joined: Tue May 19, 2015 1:46 pm


Return to Veeam Backup & Replication



Who is online

Users browsing this forum: pstickle, Yahoo [Bot] and 44 guests