small things
This commit is contained in:
22
README.md
22
README.md
@@ -2,20 +2,30 @@
|
||||
|
||||
Useful scripts for managing servers written in Bash. Supported OS includes Debian/Ubuntu, Alpine, Arch, RHEL/Fedora/CentOS, openSUSE, Void, and Gentoo.
|
||||
|
||||
In the past I was using it more for maintaining my home servers, bare metal with Docker, however when I changed to k3s, I started using it less. Now I'm using this as a collection of useful scripts that I can use when needed. Also `clean.sh` is still useful.
|
||||
In the past I was using it more for maintaining my home servers, bare metal with Docker, however when I changed to k3s, I started using it less. Now I'm using this as a collection of useful scripts that I can use when needed. Also `housekeeping.sh` is still useful.
|
||||
|
||||
### `clean.sh`
|
||||
### `housekeeping.sh`
|
||||
|
||||
This script is used to clean some of the files, docker dangling images, and docker stopped/unused containers.
|
||||
Unified system housekeeping script for package index updates, system cleanup, and oh-my-zsh updates.
|
||||
|
||||
### `update.sh`
|
||||
Subcommands:
|
||||
- `update` - detects the running OS and updates the package index only. It does not upgrade or install packages.
|
||||
- `clean` - runs system cleanup for Docker resources, package manager caches, temporary/cache/log directories, systemd journal, thumbnails, and memory caches.
|
||||
- `omz` - updates oh-my-zsh when `omz` is installed; otherwise it skips safely.
|
||||
- `all` - runs `update`, then `clean`, then `omz`. This is the default when no subcommand is provided.
|
||||
|
||||
Detects the running OS (Alpine, Arch, Debian/Ubuntu, RHEL/Fedora/CentOS, openSUSE, Void, Gentoo) and updates the **package list** only — it does not upgrade or install any packages. Useful for keeping package indexes fresh so that `upgrade` commands run faster later.
|
||||
The `update` subcommand supports Alpine, Arch, Debian/Ubuntu, RHEL/Fedora/CentOS, openSUSE, Void, and Gentoo family distributions.
|
||||
|
||||
Run with `curl | bash`:
|
||||
|
||||
```bash
|
||||
curl -sSL https://git.ivanch.me/ivanch/server-scripts/raw/branch/main/update.sh | bash
|
||||
curl -sSL https://git.ivanch.me/ivanch/server-scripts/raw/branch/main/housekeeping.sh | bash
|
||||
```
|
||||
|
||||
Run a specific subcommand:
|
||||
|
||||
```bash
|
||||
curl -sSL https://git.ivanch.me/ivanch/server-scripts/raw/branch/main/housekeeping.sh | bash -s -- clean
|
||||
```
|
||||
|
||||
### `windows-backup.ps1`
|
||||
|
||||
Reference in New Issue
Block a user