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

1.0 KiB

Daily Cheat Sheet

Quick commands for common homelab tasks. For detailed procedures, see the Operations directory.

🐳 Docker Maintenance

# 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

# Access Postgres CLI
docker exec -it global_postgres psql -U postgres

SQL inside psql: \l (list DBs), \du (list users).

☁️ Backup & Cloud Storage

# 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

# Real-time monitoring
htop

# Disk usage
df -h

# Swap space
swapon --show

🚀 Quick Actions