I need to reboot a machine after finished backup, wait a time and shutdown.
I have a hardware problem and I haven't identificate the problem yet.
(Notebook HP Core i5 running Windows 10)

It looks bacula executes command that I want to execute in client instead
of bacula-dir.

There is a way to do this?

05-Feb 16:20 windows-fd JobId 3055: shell command: run ClientAfterJob
"C:\Windows\System32\shutdown.exe /r /t 5"
05-Feb 16:20 bacula-sd JobId 3055: Elapsed time=00:00:26, Transfer rate=57
 Bytes/second
05-Feb 16:20 bacula-sd JobId 3055: Sending spooled attrs to the Director.
Despooling 940 bytes ...
05-Feb 16:20 windows-fd JobId 3055: shell command: run ClientAfterJob
"C:\Windows\System32\shutdown.exe /s /t 10"
05-Feb 16:20 windows-fd JobId 3055: ClientAfterJob: A shutdown already
scheduled.(1190)
05-Feb 16:20 windows-fd JobId 3055: Error: Runscript: ClientAfterJob
returned non-zero status=166. ERR=Unknown error
05-Feb 16:20 bacula-dir JobId 3055: Error: Bacula bacula-dir 7.4.0
(16Jan16):

Job {
  Name = "Backup_Windows"
  JobDefs = "Backup_Padrao"
  Client = windows-fd
  FileSet = "FileSet_Windows"
  Schedule = "Agenda_GFS_Tarde"


#  ClientRunAfterJob  = "C:\\Windows\\System32\\shutdown.exe /r /t 5"
#  RunAfterJob  = "/bin/sleep 300"
#  ClientRunAfterJob  = "C:\\Windows\\System32\\shutdown.exe /s /t 10"

  RunScript {
    RunsWhen=After
    RunsOnClient=Yes
    Command  = "C:\\Windows\\System32\\shutdown.exe /r /t 5"
  }
  RunScript {
    RunsWhen=After
    RunsOnClient=No
    Command  = "/bin/sleep 300"
  }
  RunScript {
    RunsWhen=After
    RunsOnClient=Yes
    Command  = "C:\\Windows\\System32\\shutdown.exe /s /t 5"
  }
}



Best Regards
Wanderlei
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to