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
Keep kopia UI running. It will run your backups according to you schedule.
But on a headless windows server how is it supposed to do?
ok then you have to configure it yourself. bat file with few lines of code scheduled in Windows Task Scheduler.
Snapshots retention, maintanance etc. should be taken care of by policies you define.
Or turn it around and pull data. You can share your remote server disk and run kopia on your server in the office.
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
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.
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.
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 (so they run automatically when other kopia tasks are requested) you are only left with backup and verification. In the nutshell something like:
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 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:)
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.
Kopia is open source:) Feel free to add this.
will do as soon as it’s perfect ![]()