summaryrefslogtreecommitdiff
path: root/doc/cronjob.markdown
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-09-19 22:15:34 -0400
committerFrederic Guillot <fred@kanboard.net>2016-09-19 22:15:34 -0400
commitdb6bd71c0ba3fa8574ec0298c0fdf352bf4adc4a (patch)
treeb51e1e29ecc4d60d5c06bb1e23415cf299f7c9be /doc/cronjob.markdown
parenta65941eadb3ddcec93132006c885106a6aa4cb9b (diff)
Add documentation to configure the cronjob on Windows
Diffstat (limited to 'doc/cronjob.markdown')
-rw-r--r--doc/cronjob.markdown25
1 files changed, 24 insertions, 1 deletions
diff --git a/doc/cronjob.markdown b/doc/cronjob.markdown
index 32f12888..780f0025 100644
--- a/doc/cronjob.markdown
+++ b/doc/cronjob.markdown
@@ -14,7 +14,7 @@ Configuration on Unix and Linux platforms
-----------------------------------------
There are multiple ways to define a cronjob on Unix/Linux operating systems, this example is for Ubuntu 14.04.
-The procedure is similar to other systems.
+The procedure is similar for other systems.
Edit the crontab of your web server user:
@@ -30,3 +30,26 @@ Example to execute the daily cronjob at 8am:
Note: the cronjob process must have write access to the database in case you are using Sqlite.
Usually, running the cronjob under the web server user is enough.
+
+Configuration on Microsoft Windows Server
+-----------------------------------------
+
+Before to configure the recurring task, create a batch file (*.bat or *.cmd) that run the Kanboard CLI script.
+
+Here an example (`C:\kanboard.bat`):
+
+```
+"C:\php\php.exe" -f "C:\inetpub\wwwroot\kanboard\kanboard" cronjob
+```
+
+**You must change the path of the PHP executable and the path of the Kanboard's script according to your installation.**
+
+Configure the Windows Task Scheduler:
+
+1. Go to "Administrative Tools"
+2. Open the "Task Scheduler"
+3. On the right, choose "Create Task"
+4. Choose a name, for example you can use "Kanboard"
+5. Under "Security Options", choose a user that can write to the database in case you are using Sqlite (might be IIS_IUSRS depending of your configuration)
+6. Create a new "Trigger", choose daily and a time, midnight for example
+7. Add a new action, choose "Start a program" and select the batch file created above