Skip to content

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ubuntu Ops Dotfiles

Personal operations scripts for maintenance, diagnostics, Docker housekeeping, and backup/snapshot workflows. Hardcoded paths and environment assumptions specific to the author's machine. Review before executing.

Structure

.
├── docker/
│   ├── docker-clean-safe
│   └── docker-net-audit.sh
├── maintenance/
│   ├── lint-scripts
│   ├── maintenance-all
│   └── update-all
├── network/
│   └── net-debug
├── setup_and_backup/
│   ├── backup-skeleton
│   ├── install-direnv-just-k6
│   └── restore-skeleton
├── system/
│   ├── check-logs.sh
│   ├── disk-clean-safe
│   └── health-check
├── LICENSE
└── README.md

Modules

  • setup_and_backup/: home-directory skeleton backup/restore, bootstrap installer for direnv, just, k6.
  • maintenance/: system update orchestration (apt, snap, flatpak), script lint/syntax checks.
  • system/: host health checks, disk cleanup, journald/systemd log diagnostics.
  • network/: fast network triage (IPs, routes, DNS, pings, listening ports).
  • docker/: safe Docker cleanup, container-network mapping/audit.

Quickstart

git clone https://github.com/Yoseph-GL/ubuntu-ops-dotfiles.git /home/joseph/Workspace/ops/scripts/ubuntu-ops-dotfiles
cd /home/joseph/Workspace/ops/scripts/ubuntu-ops-dotfiles
chmod +x docker/* system/* network/* maintenance/* setup_and_backup/*

Add to ~/.bashrc or ~/.zshrc:

export UBUNTU_OPS_DOTFILES="/home/joseph/Workspace/ops/scripts/ubuntu-ops-dotfiles"
export PATH="$UBUNTU_OPS_DOTFILES/docker:$UBUNTU_OPS_DOTFILES/system:$UBUNTU_OPS_DOTFILES/network:$UBUNTU_OPS_DOTFILES/maintenance:$UBUNTU_OPS_DOTFILES/setup_and_backup:$PATH"

Reload and verify:

source ~/.bashrc   # or source ~/.zshrc
health-check --help
maintenance-all --help
backup-skeleton --help

Usage

setup_and_backup

backup-skeleton
restore-skeleton
install-direnv-just-k6

Maintenance

update-all
update-all --run
maintenance-all --run --days 21
lint-scripts --run

System

health-check --run
check-logs.sh --run
disk-clean-safe
disk-clean-safe --run --days 30

Network

net-debug --run
net-debug --run --host github.com

Docker

docker-clean-safe
docker-clean-safe --run --with-volumes
docker-net-audit.sh --run

About

Personal, opinionated workstation configuration and operational scripts for Ubuntu Server environments. Automated setup, deep maintenance, and backup workflows designed with a Platform Engineering mindset.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages