diff options
| author | diogo464 <[email protected]> | 2024-01-01 19:13:42 +0000 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2024-01-01 19:13:42 +0000 |
| commit | 4ca7db4eb3dc9f4518857c3713c913d3f6f4ef7b (patch) | |
| tree | abca501bc136cda6f2a67f10cde831b7c7ae9f20 | |
| parent | e1addb5522d6d5fca29e134992a76901ba1335dc (diff) | |
updated readme
| -rw-r--r-- | README.md | 23 |
1 files changed, 23 insertions, 0 deletions
| @@ -1,9 +1,32 @@ | |||
| 1 | # zsnap | 1 | # zsnap |
| 2 | 2 | ||
| 3 | zsnap is a simple tool to manage periodic snapshots of zfs datasets. | ||
| 4 | |||
| 5 | ``` | ||
| 6 | # run daemon | ||
| 3 | zsnap [--config zsnap.toml] run | 7 | zsnap [--config zsnap.toml] run |
| 8 | # create a single snapshot for a given tag and dataset | ||
| 4 | zsnap [--config zsnap.toml] snapshot --tag my-tag dataset | 9 | zsnap [--config zsnap.toml] snapshot --tag my-tag dataset |
| 10 | # prune snapshots for a given tag and dataset | ||
| 5 | zsnap [--config zsnap.toml] prune [--tag my-tag] [--keep n] dataset | 11 | zsnap [--config zsnap.toml] prune [--tag my-tag] [--keep n] dataset |
| 12 | ``` | ||
| 13 | |||
| 14 | example service file: | ||
| 15 | ``` | ||
| 16 | [Unit] | ||
| 17 | Description=zsnap | ||
| 18 | |||
| 19 | [Service] | ||
| 20 | Type=simple | ||
| 21 | ExecStart=/usr/bin/zsnap --config /etc/zsnap.toml run | ||
| 22 | Restart=on-failure | ||
| 23 | RestartSec=5 | ||
| 24 | |||
| 25 | [Install] | ||
| 26 | WantedBy=default.target | ||
| 27 | ``` | ||
| 6 | 28 | ||
| 29 | example config: | ||
| 7 | ```zsnap.toml | 30 | ```zsnap.toml |
| 8 | [dataset."blackmesa/k8s"] | 31 | [dataset."blackmesa/k8s"] |
| 9 | schedules = ["hourly", "daily", "weekly", "monthly"] | 32 | schedules = ["hourly", "daily", "weekly", "monthly"] |
