32 lines
757 B
Markdown
32 lines
757 B
Markdown
# homelab-scripts
|
|
|
|
Collection of maintenance, monitoring, and automation scripts for my self-hosted homelab.
|
|
|
|
## Contents
|
|
|
|
- **healthcheck.sh** — Quick Docker health check (container status)
|
|
- **cleanup.sh** — Docker system cleanup (prune images, containers, volumes)
|
|
- **backup-notify.sh** — Backup reminder / notification pattern
|
|
- **git-autosave.sh** — Auto-commit and push changes to Gitea
|
|
|
|
## Usage
|
|
|
|
Scripts are designed to be run manually or via cron jobs. Make them executable:
|
|
|
|
```bash
|
|
chmod +x *.sh
|
|
```
|
|
|
|
## Cron Examples
|
|
|
|
```
|
|
# Daily health check
|
|
0 8 * * * /home/ray/homelab-scripts/healthcheck.sh
|
|
|
|
# Weekly cleanup
|
|
0 3 * * 0 /home/ray/homelab-scripts/cleanup.sh
|
|
|
|
# Backup reminder
|
|
0 20 * * * /home/ray/homelab-scripts/backup-notify.sh
|
|
```
|