Direkt zum Inhalt

Using pre/post command to restart Mac OS X

Thread needs solution

Hi everyone,

I wanted to know how to use pre/post command with Acronis 12 with my Mac OS X
I need to restart my Mac after backing up. I've created an app (reboot.app) on the desktop, when I double-click on, the application restarts my mac.
Now, I dont know how to configure command path, working directory and arguments in order to Acronis can use the app to reboot the mac.

If someone have already configure this...

Thank you !

0 Users found this helpful

Hi,

Or maybe, is there any other way to restart or shutdown a mac after backing up with Acronis ?

Hello Guillaume,

Our pre/post command funcitonality only excepts directly executable commands -- things you can launch from the terminal directly. The working directory is the starting point context from which the command runs that is used for the relative paths in the script. If you use absolute paths in your script, you can leave this blank.

Concernig the .app -- this is a directory, which cannot be run directly. You need to run a command that can run the .app

The correct command to run your .app would be "open" and then specify the app to open as the argument.

So the command window would contain:

open  (or better yet -- /usr/bin/open)

The working directory:

/path/to/your/app/folder

Arguments:

reboot.app

You can also leave the working directory blank and use the following argument:

/path/to/your/app/folder/reboot.app

Just as a FYI, it is much easier to use shell scripts to make a directly executble "reboot.command" script. Then you can simply point to this command and not bother with working directories or arguments and whatnot.

Hello Igor,

Thank you for your answer, it works fine.

I tried to configure a shell script, it works too. Just few warnings with error code "mac is going to shutdown" but it does not matter.

Thank you !

Hi,

Here's my script bash :

#! /bin/sh
sudo shutdown -h now <<< pwd

Backup seems to be okay.
But here's the warning message after the shutdown :

The activity was canceled by the user. The system is about to be stopped.
Error code 0x01350046 + 0x01350032 + 0x01350032 + 0x01490002 + 0x0135002D + 0x01350004

Configuration is in attached file, if there's any problem...

Anhang Größe
411242-138535.png 99.12 KB