# \[Windows\] KopiaUI how schedule task?

**URL:** <https://kopia.discourse.group/t/windows-kopiaui-how-schedule-task/2038>\
**Category:** General Topics\
**Created:** [May 14, 2023, 4:11pm UTC](https://kopia.discourse.group/t/windows-kopiaui-how-schedule-task/2038 "2023-05-14T16:11:19Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Enricosx](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/enricosx/32/707_2.png) [@Enricosx](https://kopia.discourse.group/u/Enricosx)\
**Post date:** [May 14, 2023, 4:11pm UTC](https://kopia.discourse.group/t/windows-kopiaui-how-schedule-task/2038/1 "2023-05-14T16:11:19Z")

</div>

I don’t see tasks in windows task and not any windows services.  
How do you schedule backups without login?  
What user use for run tasks?  
Thank you

---

<div class="post-metadata">

**Author:** ![kapitainsky](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/kapitainsky/32/535_2.png) [@kapitainsky](https://kopia.discourse.group/u/kapitainsky)\
**Post date:** [May 16, 2023, 1:10pm UTC](https://kopia.discourse.group/t/windows-kopiaui-how-schedule-task/2038/2 "2023-05-16T13:10:40Z")

</div>

Keep kopia UI running. It will run your backups according to you schedule.

---

<div class="post-metadata">

**Author:** ![Enricosx](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/enricosx/32/707_2.png) [@Enricosx](https://kopia.discourse.group/u/Enricosx)\
**Post date:** [May 16, 2023, 5:20pm UTC](https://kopia.discourse.group/t/windows-kopiaui-how-schedule-task/2038/3 "2023-05-16T17:20:29Z")

</div>

But on a headless windows server how is it supposed to do?

---

<div class="post-metadata">

**Author:** ![kapitainsky](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/kapitainsky/32/535_2.png) [@kapitainsky](https://kopia.discourse.group/u/kapitainsky)\
**Post date:** [May 16, 2023, 5:25pm UTC](https://kopia.discourse.group/t/windows-kopiaui-how-schedule-task/2038/4 "2023-05-16T17:25:31Z")

</div>

ok then you have to configure it yourself. bat file with few [lines of code](https://kopia.io/docs/reference/command-line/) scheduled in Windows Task Scheduler.

Snapshots retention, maintanance etc. should be taken care of by policies you define.

---

<div class="post-metadata">

**Author:** ![kapitainsky](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/kapitainsky/32/535_2.png) [@kapitainsky](https://kopia.discourse.group/u/kapitainsky)\
**Post date:** [May 16, 2023, 5:27pm UTC](https://kopia.discourse.group/t/windows-kopiaui-how-schedule-task/2038/5 "2023-05-16T17:27:52Z")

</div>

Or turn it around and pull data. You can share your remote server disk and run kopia on your server in the office.

---

<div class="post-metadata">

**Author:** ![sgw](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@sgw](https://kopia.discourse.group/u/sgw)\
**Post date:** [November 28, 2025, 9:18am UTC](https://kopia.discourse.group/t/windows-kopiaui-how-schedule-task/2038/6 "2025-11-28T09:18:24Z")

</div>

Do I have to install the CLI version additionally?

Is there any example for a bat file, I can’t find it in the documentation and wonder …

thanks

---

<div class="post-metadata">

**Author:** ![kapitainsky](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/kapitainsky/32/535_2.png) [@kapitainsky](https://kopia.discourse.group/u/kapitainsky)\
**Post date:** [November 28, 2025, 2:03pm UTC](https://kopia.discourse.group/t/windows-kopiaui-how-schedule-task/2038/7 "2025-11-28T14:03:27Z")

</div>

simply run:

`kopia snapshot create --all`

make sure that kopia config file is in the scope of user you use, otherwise specify its location explicitly using `--config-file` flag.

For scheduling use whatever works on your OS and you are familiar with.

I have not much idea about Windows but I bet you will find tones of examples how to schedule things online.

---

<div class="post-metadata">

**Author:** ![sgw](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@sgw](https://kopia.discourse.group/u/sgw)\
**Post date:** [December 1, 2025, 3:08pm UTC](https://kopia.discourse.group/t/windows-kopiaui-how-schedule-task/2038/8 "2025-12-01T15:08:03Z")

</div>

thanks

so far I did not find tons of examples 😉

I am linux-oriented also … I know my way around windows but would prefer a documented solution over trying around.

So far I kept the GUI running minimized in a detached RDP-session.

But that’s not a solid solution.

---

<div class="post-metadata">

**Author:** ![kapitainsky](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/kapitainsky/32/535_2.png) [@kapitainsky](https://kopia.discourse.group/u/kapitainsky)\
**Post date:** [December 1, 2025, 5:07pm UTC](https://kopia.discourse.group/t/windows-kopiaui-how-schedule-task/2038/9 "2025-12-01T17:07:14Z")

</div>

As AI tells me:

> To schedule a command to run when not logged in,
> 
> use the Windows Task Scheduler, create a new task, and on the **General** tab, select “ **Run whether user is logged on or not** ”. This setting will cause the task to run in a non-interactive, background session even if you are not signed in

Seems rather straightforward.

Create script to run whatever kopia operations you need.

Assuming that you leave default [maintenance tasks settings](https://kopia.io/docs/advanced/maintenance/) (so they run automatically when other kopia tasks are requested) you are only left with backup and [verification](https://kopia.io/docs/advanced/consistency/). In the nutshell something like:

```auto
kopia snapshot create --all --config-file /path/to/config.file
kopia snapshot verify --config-file /path/to/config.file

```

I would also add some sort of notifications. When for example exit code of `kopia snapshot verify` is not zero you want to know about it asap. To keep everything simple you could rely on [kopia notifications](https://kopia.io/docs/reference/command-line/common/#notifications) here. It is not well documented IMO but you can play with it first using KopiaUI to get some feeling what can be done.

I think that some working POC can be setup very quickly. The rest is your imagination/research and a bit of work:)

---

<div class="post-metadata">

**Author:** ![sgw](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@sgw](https://kopia.discourse.group/u/sgw)\
**Post date:** [December 15, 2025, 9:18am UTC](https://kopia.discourse.group/t/windows-kopiaui-how-schedule-task/2038/10 "2025-12-15T09:18:03Z")

</div>

Thanks …

I start to write a bat-file doing things … after that I can try to call it via timer.

I still can’t believe that there is no template or so in the wiki or the docs.

---

<div class="post-metadata">

**Author:** ![kapitainsky](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/kapitainsky/32/535_2.png) [@kapitainsky](https://kopia.discourse.group/u/kapitainsky)\
**Post date:** [December 15, 2025, 9:26am UTC](https://kopia.discourse.group/t/windows-kopiaui-how-schedule-task/2038/11 "2025-12-15T09:26:56Z")

</div>

> [@sgw](#):
>
> I still can’t believe that there is no template or so in the wiki or the docs.

Kopia is open source:) Feel free to add this.

---

<div class="post-metadata">

**Author:** ![sgw](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@sgw](https://kopia.discourse.group/u/sgw)\
**Post date:** [December 15, 2025, 9:58am UTC](https://kopia.discourse.group/t/windows-kopiaui-how-schedule-task/2038/12 "2025-12-15T09:58:19Z")

</div>

will do as soon as it’s perfect 😛
