tar.gz Backup Directory Shell Script for Linux (Compress, Verify, Retention)
Backup a Linux directory with tar.gz in a shell script: timestamped archives, optional exclude patterns, test tarball integrity,…
Read tutorial →Browse step-by-step tutorials in this topic.
Backup a Linux directory with tar.gz in a shell script: timestamped archives, optional exclude patterns, test tarball integrity,…
Read tutorial →
Monitor Linux load average with a Bash script: compare to CPU count, email when hot, attach top snapshot,…
Read tutorial →
Delete old files safely on Linux with a Bash script: find -mtime retention, DRY_RUN preview, path allowlist, log…
Read tutorial →
Block until a TCP port is open on Linux: Bash wait-for-port script with timeout, sleep interval, and use…
Read tutorial →
Automate rsync backups on Linux with a Bash script: SSH key auth, --delete mirror option, log each run,…
Read tutorial →
Use a Certbot deploy hook shell script on Linux to run nginx -t and reload only when certificates…
Read tutorial →
Clean stale files under /tmp safely with a Bash script: mtime threshold, size summary, allowlist paths, dry-run mode,…
Read tutorial →
Build proper Linux CLI scripts with getopts: -h help, -d directory, -r retention days, validate combinations, and print…
Read tutorial →
Wrap cron jobs with a Bash script that emails admins when a command fails — using mail/mailx, capturing…
Read tutorial →
Structure Linux Bash scripts with functions: pass arguments, use local variables, return codes, and a small deploy-style example…
Read tutorial →