Schedules
Scheduler
resticprofile manages scheduled backups using:
- launchd on macOS
- Task Scheduler on Windows
- systemd on Linux and other BSDs
- crond as a fallback (requires
crontab
binary) - crontab files (with or without a user column)
On Unix systems (excluding macOS), resticprofile uses systemd if available, otherwise it falls back to crond.
See reference / global section for scheduler configuration options.
Each profile can be scheduled independently. Within each profile, these sections can be scheduled:
- backup
- check
- forget
- prune
- copy
Deprecation
Scheduling the retention
section directly is deprecated. Use the forget
section instead.
The retention section should be associated with a backup
section, not scheduled independently.
[profile.retention]
# deprecated
schedule = "daily"
# use the forget target instead
[profile.forget]
schedule = "daily"
---
profile:
retention:
# deprecated
schedule: daily
# use the forget target instead
forget:
schedule: daily
"profile" = {
"retention" = {
# deprecated
schedule = "daily"
}
# use the forget target instead
"forget" = {
schedule = "daily"
}
}
{
"profile": {
"forget": {
"schedule": "daily"
}
}
}