Version main
Configure the Plakar Scheduler for Daily Backups
Last reviewed: 2025-12-08 / Plakar v1.0.6
Plakar includes a scheduler that can run backups as well as tasks like restoring files, synchronizing Kloset stores, and verifying backup integrity.
In this tutorial, we will show how to set up the scheduler to run backups every day.
Requirements
Create a configuration for your Kloset store. This ensures the scheduler can later retrieve the store passphrase:
1plakar store add mybackups /var/backups passphrase=mysuperpassphrase
Then, create the store referencing the configuration:
1plakar at @mybackups create
Configuration
Create the configuration file scheduler.yaml for the scheduler in your current directory with the following content:
1agent:
2 tasks:
3 - name: backup Plakar source code
4 repository: "@mybackups"
5
6 backup:
7 path: /Users/niluje/dev/plakar/plakar
8 interval: 24h
9 check: true
This configuration file defines a task for the Plakar scheduler, where:
nameis the task label, displayed in the UI.repositoryrefers to the Kloset store. The syntax@mystorecorresponds to the store previously configured withplakar store add mystore.backupis the task type. In this case, we back up the Plakar source code at the given path every 24 hours.checkruns a verification after the backup is created.
Running the scheduler
Start the scheduler
1plakar scheduler start -tasks ./scheduler.yaml
The scheduler runs in the background. To stop it, run:
1plakar scheduler stop