christianspecht / scm-backup

Makes offline backups of your cloud hosted source code repositories
https://scm-backup.org/
GNU General Public License v3.0
59 stars 20 forks source link

running under scheduled task #30

Closed mcconnellt150 closed 5 years ago

mcconnellt150 commented 5 years ago

Hi All,

when I try to run this as a scheduled task I get errors like the below, is there anyway I can correct this?

Info SCM Backup 1.2.0.870cd29 Info http://scm-backup.org/ Error Could not find file 'C:\Windows\system32\NLog.config'. Error Backup failed! Error The application will close in 5 seconds!

christianspecht commented 5 years ago

NLog.config is the configuration file for SCM Backup's logger, which should be in SCM Backup's main directory. This should be the case when you unzipped the download as-is.

I just tried to run SCM Backup via scheduled task on my machine (Windows 8.1). When I just enter the path to the batch file in the "Edit Action" screen, I get errors as well (different message, just one line, disappears so quickly that I can't read it).

To get it to work, I had to fill "Start in (optional)" as well: Edit Action

Does that work for you?

mcconnellt150 commented 5 years ago

This works perfectly, thanks for your help

christianspecht commented 5 years ago

Good to hear!

Anyway, I added this information to the docs. Maybe it helps others too.