I configure backup on the schedule. There is a backup.bat batch file, it has a string

C:\Python27\python C:\Backup\s3cmd get s3......... 

If I run it manually, everything works; if I add it to the scheduler, it does not start. I have already tried all the options for checkboxes in the scheduler. How to make it run on a schedule?

  • Do you want to run .bat on a schedule? And what have python? - nick_gabpe
  • Further, different variables are substituted using the bat instructions. The s3cmd script is a Pythonic tool for backup to s3 - oleg

2 answers 2

It was in the s3cmd script itself, which used windows environment variables. I explicitly asked them in the calling batch file and it all worked, thanks.

    In the console or from the batch file * .bat, you can run the at command. Here is an example:

     at 08:00 cmd /c "taskkill /f /im explorer.exe" 

    This command will cut down the process of explorer.exe at 8:00. I think the meaning is clear. To create a backup instead of taskkill use for example xcopy or robocopy. I think the idea is clear.

    • Something is not clear. I need to run a specific utility written on Python, according to the schedule and not being logged on. xcopy will not put in the Amazon file. - oleg