Page 1 of 1

how can run linux script on replicated vm after replication

Posted: Dec 18, 2017 5:06 pm
by baber
Dear all
Hi

can run script automatically on Linux vm after replication finished on replicated VM?

BR

Re: how can run linux script on replicated vm after replicat

Posted: Dec 19, 2017 9:17 am
by vmniels
A replica isn't powered on during the process so u can't do this. May I ask what you are trying to achieve?

Re: how can run linux script on replicated vm after replicat

Posted: Dec 19, 2017 9:30 am
by baber
i want it change some parameters in some files after replication finished

BR

Re: how can run linux script on replicated vm after replicat

Posted: Dec 19, 2017 9:35 am
by tdewin
Enable a startup script with a pre-script before backup. Then disable the startup script in a post script. Be careful however. If something goes wrong between pre and post and you reboot your machine, your startup script will of course run
https://helpcenter.veeam.com/docs/backu ... tml?ver=95

Re: how can run linux script on replicated vm after replicat

Posted: Dec 19, 2017 10:23 am
by baber
pre-script and post-script will be run on source VM
but i want script on target (replicated) VM

Re: how can run linux script on replicated vm after replicat

Posted: Dec 19, 2017 10:47 am
by tdewin
yes but if you run a pre-script before the backup, and enable a startup script in the pre script, it will be enabled for the replicated vm. And so when your replica finally boots, your startup script will run