Files
homelab-docs/cheat-sheet.md
Drew Davis 168198e8a7
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2s
docs: Consolidate homelab documentation and update SSH guide
2026-04-26 21:28:40 +00:00

54 lines
1.0 KiB
Markdown

# ⚡ Daily Cheat Sheet
Quick commands for common homelab tasks. For detailed procedures, see the [Operations](./operations/) directory.
## 🐳 Docker Maintenance
```bash
# View running containers
docker ps
# Restart a service
cd /opt/docker/[service] && docker compose restart
# View live logs
docker compose logs -f [service]
# Cleanup unused data
docker system prune -a --volumes
```
## 🐘 Database Operations
```bash
# Access Postgres CLI
docker exec -it global_postgres psql -U postgres
```
*SQL inside psql:* `\l` (list DBs), `\du` (list users).
## ☁️ Backup & Cloud Storage
```bash
# Manual backup trigger
/opt/docker/backups/backup-homelab.sh
# List remote backups
rclone ls linode-s3:davisdre-backups-chicago
# View logs
tail -n 20 /opt/docker/backups/backup.log
```
## 🖥️ System Health
```bash
# Real-time monitoring
htop
# Disk usage
df -h
# Swap space
swapon --show
```
## 🚀 Quick Actions
- **Update Dashboard:** `updatedash` (on Linode)
- **New App:** See [New App Deployment](./operations/new-app-deployment.md)