Salta al contenuto principale

Need help getting Pre/Post commands running for Linux VM

Thread needs solution

I have a problem getting Pre/Post commands working for a Turnkey Linux (Debian) VM.

I have created a couple of scripts to stop and start the postgresql server, these work fine from a terminal with or without the path but when I specify them in a backup plan, I get:

Command has failed. Command=Executing pre-backup command;
Failed to execute command '/bin/sh: /usr/local/bin/acronis_stop: not found'.
 

Cheers!

Joe Thomlinson
IT Administrator
Peter Stevens Motor Cycles
 
0 Users found this helpful
frestogaslorastaswastavewroviwroclolacorashibushurutraciwrubrishabenichikucrijorejenufrilomuwrigaslowrikejawrachosleratiswurelaseriprouobrunoviswosuthitribrepakotritopislivadrauibretisetewrapenuwrapi
Messaggi: 22
Commenti: 3800

Hi,

The pre/post commands are executed by the agent which performs the backup. This means that if you're backing up the VM in agent-less mode (by Agent for VMware or Agent for Hyper-V), then the pre/post command will attempt to run on the responsible agent side and would fail with "not found" error (since I assume you put the scripts inside the VM). If you need to run pre/post commands inside the guest OS of the VM, then you can use native VMware Tools capability (see link): put the required scripts into /usr/sbin/pre-freeze-script + /usr/sbin/post-thaw-script files and they will be triggered before the quiesced snapshot and after its completion.

If the above is not applicable to your case, for example if you run pre/post commands during agent-based backup via Agent for Linux, then the issue should be investigated with help from our support team which will need to review the script and other diagnostic information and check what might be wrong.

Thank you.

In risposta a di truwrikodrorow…

Hi Vasily,

Many thanks! It's working like a bought one now. :-)

Perhaps there should be a note in the Pre/Post section and the documentation to highlight that they don't apply in the agentless scenario? (And a link to the VMware Tools doc as you mention above.)

Cheers!

Joe Thomlinson
IT Systems Administrator
Peter Stevens Motor Cycles