Преглед изворни кода

Update docs/configuring-playbook-backup-borg.md: add descriptions about other useful options

This commit adds descriptions about options for setting the archive name and the retention policy.

Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
pull/3943/head
Suguru Hirahara пре 1 година
родитељ
комит
e703253ecd
No known key found for this signature in database GPG Key ID: E4F9743DAB4B7B75
1 измењених фајлова са 20 додато и 0 уклоњено
  1. +20
    -0
      docs/configuring-playbook-backup-borg.md

+ 20
- 0
docs/configuring-playbook-backup-borg.md Прегледај датотеку

@@ -75,6 +75,26 @@ backup_borg_ssh_key_private: |

**Note**: `REPO` will be initialized on backup start, for example: `matrix`. See [Remote repositories](https://borgbackup.readthedocs.io/en/stable/usage/general.html#repository-urls) for the syntax.

### Set backup archive name (optional)

You can specify the backup archive name format. To set it, add the following configuration to your `vars.yml` file (adapt to your needs):

```yaml
backup_borg_storage_archive_name_format: matrix-{now:%Y-%m-%d-%H%M%S}
```

### Configure retention policy (optional)

It is also possible to configure a retention strategy. To configure it, add the following configuration to your `vars.yml` file (adapt to your needs):

```yaml
backup_borg_retention_keep_hourly: 0
backup_borg_retention_keep_daily: 7
backup_borg_retention_keep_weekly: 4
backup_borg_retention_keep_monthly: 12
backup_borg_retention_keep_yearly: 2
```

### Backup without encryption (optional)

To backup without encryption, add the following configuration to your `vars.yml` file:


Loading…
Откажи
Сачувај