Archive:Shutdown after backup (POST Process)

From SEPsesam
Revision as of 06:56, 11 July 2008 by Hs (talk | contribs)

Green IT is new trend in the IT. It's often not necessary to run a computer all the time. After the backup a computer which is no longer needed, for example a desktop PC, can be shutdown. Therefore here you find the instruction how to shutdown a (Windows) PC after the backup. Green IT with SEP:-)

Im ersten Schritt wird der gewünschte Auftrag um das POST-Prozessing erweitert. In the first step - add a POST Process to the backup task.

POST Tasks2.jpg

Bitte editieren Sie die entsprechende sbc_post Datei über die GUI von SEP sesam --> Konfiguration -> Schnittstellen -> 'Post'-Schnittstelle Now edit the responding sbc_post file. Choose in the SEP sesam GUI --> Configuration -> Interfaces -> 'Post' Interface

Wählen Sie den passenden Rechner aus der angebotenten Liste aus z.B. Fallballa Choose the Computer from the list, e.g. Fallballa

Interfaces.jpg


Im Schnittstellentext tragen Sie bitte folgende Zeilen am Ende wie folgt ein: Please add the following lines to the sbc_post file:

For Windows:

rem === Please insert your specific actions here =====================================
 
echo "shutdown -s -t 120"
shutdown -s -t 120

rem echo STATUS:ERROR {message}
echo STATUS:OK
exit


Die erste Zeile gibt später im POST Log der Sicherung das eingebaute Kommando aus. The first line "shutdown ...." is message which is written to the POST Log file during the backup.

! Der gleiche Vorgang auf einem Linux Rechner erfolgt mit dem Kommando ! For add the command

shutdown -h -time 3 (SuSE 11.0 z.B.)