[WIP] v0.7.0 fixes and changes to cache and remotefetcher

This commit is contained in:
2025-01-28 15:42:50 -06:00
parent 8c633fd4b2
commit 086835453b
23 changed files with 491 additions and 96 deletions

View File

@ -2,7 +2,7 @@
title: "Command Lists"
weight: 2
description: >
This page tells you how to get started with Backy.
This page tells you how to get use command lists.
---
Command lists are for executing commands in sequence and getting notifications from them.
@ -14,7 +14,7 @@ Lists can go in a separate file. Command lists should be in a separate file if:
1. key 'cmd-lists.file' is found
2. hosts.yml or hosts.yaml is found in the same directory as the backy config file
```yaml
```yaml {lineNos="true" wrap="true" title="yaml"}
test2:
name: test2
order:
@ -65,10 +65,10 @@ Backy also has a cron mode, so one can run `backy cron` and start a process that
Adding `cron: 0 0 1 * * *` to a `cmd-lists` object will schedule the list at 1 in the morning. See [https://crontab.guru/](https://crontab.guru/) for reference.
{{% notice tip %}}
Note: Backy uses the second field of cron, so add anything except * to the beginning of a regular cron expression.
Note: Backy uses the second field of cron, so add anything except `*` to the beginning of a regular cron expression.
{{% /notice %}}
```yaml
```yaml {lineNos="true" wrap="true" title="yaml"}
cmd-lists:
  docker-container-backup: # this can be any name you want
    # all commands have to be defined