The support forum

Running Backup then Shutdown

Matthewlawson3 :

Aug 08, 2020

What is the proper command that I should input in a backup's post backup settings to do a shutdown of the computer after the backup is completed?

Thank you very much! Much appreciated!

highend :

Aug 08, 2020

E.g.:
shutdown /s /t 1

highend :

Aug 08, 2020

or if this should only be done when it completed successfully, create a .bat file and call that instead.

E.g.:
IF NOT "%BVCKUP_status%" == "Completed" EXIT
IF NOT "%BVCKUP_errors%" == "0" EXIT
shutdown /s /t 1

Matthewlawson3 :

Aug 08, 2020

I just need it to do the backup then shutdown after the backup is done. So shutdown /s would do that?

highend :

Aug 08, 2020

As long as you have the necessary permissions (a normal user can't execute that command successfully), yes.

Alex Pankratov :

Aug 08, 2020

Another option is to have a batch file to start the job and shut down the machine once there are no backups are running.

See Option B in "Advance use" > "Shutting down computer after a backup" in the FAQ  -  https://bvckup2.com/support/faq

Matthewlawson3 :

Aug 09, 2020

Thank you. shutdown/s did the trick!

New topic

Create
Made by IO Bureau in Switzerland
Support

Updates Newsletter
Blog & RSS
Follow Twitter
Reddit
Miscellanea Press kit
Testimonials
Company Imprint

Legal Terms
Privacy