Bacula-users

Re: [Bacula-users] shutdown windows client after backup

2011-05-26 03:57:58
Subject: Re: [Bacula-users] shutdown windows client after backup
From: "J. Echter" <j.echter AT elektro-mayer-echter DOT de>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 26 May 2011 09:51:48 +0200
Am 26.05.2011 09:23, schrieb Marcello Romani:
> Hi,
>       I'd like to share a tip about shutting down a windows client after
> its backuò job has finished.
> Nothing spectacular, but I guessed somebody would find it useful.
>
> 1) Create a batch file with a suitable name, e.g. C:\shutdown.bat
> 2) Put this single line in it:
>
> shutdown -s -t 0
>
> which simply means halt the system (-s) and do it now (-t 0).
>
> Then in bacula-dir.conf on the host where bacula director runs, edit the
> job resource of the windows client and add this line:
>
> ClientRunAfterJob = "C:/shutdown.bat"
>
> The client machine whill shutdown immediataly after the backup job has
> finished.
>
> Disclaimer: I haven't tested this with unsaved documents open...
>
> HTH
>
also you can start and stop services with net stop and net start.

cheers.

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users