Add coder_test: backup manager, data analysis, tests and systemd units
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
# Backup Schedule
|
||||
|
||||
The `backup_manager.py watch` process reads the schedule from this file.
|
||||
Edit the `cron:` line below and restart the `backup.service` unit
|
||||
(`sudo systemctl restart backup.service`) for changes to take effect.
|
||||
|
||||
## Schedule
|
||||
|
||||
- **cron:** `0 3 * * *`
|
||||
- **timezone:** system local time
|
||||
|
||||
The cron expression uses the standard five fields:
|
||||
|
||||
```
|
||||
minute hour day-of-month month day-of-week
|
||||
```
|
||||
|
||||
Examples:
|
||||
|
||||
| Expression | Meaning |
|
||||
| ----------------- | -------------------------------- |
|
||||
| `0 3 * * *` | every day at 03:00 |
|
||||
| `*/30 * * * *` | every 30 minutes |
|
||||
| `0 */6 * * *` | every 6 hours |
|
||||
| `0 2 * * 1-5` | weekdays at 02:00 |
|
||||
| `30 1 1 * *` | first day of every month at 01:30 |
|
||||
|
||||
## Rotation
|
||||
|
||||
Snapshots are kept according to `retention_days` in `backup_config.json`;
|
||||
dated snapshot directories older than that are removed after each run.
|
||||
Reference in New Issue
Block a user