Skip to content

Bash

6 pages
  • Local Rsync: Automated folder mirroring with inotifywait

    In Posts 707 words 4 min

    SelfhostedLinuxBashRsyncInotifyDevops

    Local rsync driven by inotifywait offers a daemon‑less mode for automated folder mirroring on Linux. It’s well‑suited to self‑hosted services where config directories must stay synchronized with minimal overhead. Introduction and prerequisites For …

    Local rsync driven by inotifywait offers a daemon‑less mode for automated folder mirroring on Linux. It’s well‑suited to self‑hosted services where config directories must stay synchronized with minimal overhead. Introduction and prerequisites For …

  • Backup Vaultwarden DB to S3

    In Posts 891 words 5 min

    SelfhostedVaultwardenPostgresBackupS3BashCron

    Vaultwarden relies on PostgreSQL to store user data. As deployment scale grows, manual database dumps become operationally risky, making automated dump and S3 backup a core operational task. 1. Preparation of compose and variables In a typical …

    Vaultwarden relies on PostgreSQL to store user data. As deployment scale grows, manual database dumps become operationally risky, making automated dump and S3 backup a core operational task. 1. Preparation of compose and variables In a typical …

  • pg_dump from Postgres container

    In Posts 616 words 3 min

    SelfhostedPostgresBackupBash

    Lead paragraph: When you need to extract a backup from a running Postgres container without stopping the service, the standard approach is docker exec combined with pg_dump. In self-hosted environments this is often the only way to obtain a dump for …

    Lead paragraph: When you need to extract a backup from a running Postgres container without stopping the service, the standard approach is docker exec combined with pg_dump. In self-hosted environments this is often the only way to obtain a dump for …

  • dig +short: quickly get only IP addresses

    In Posts 371 words 2 min

    LinuxDevopsDnsBash

    When you need a domain’s IP address without the noise of full dig output, +short is the go-to flag. It strips away headers, trailers, and extra sections, returning only the answer data—making it ideal for scripts, automation, and quick checks. Why …

    When you need a domain’s IP address without the noise of full dig output, +short is the go-to flag. It strips away headers, trailers, and extra sections, returning only the answer data—making it ideal for scripts, automation, and quick checks. Why …

  • nftables: dynamic address list update from file without reload

    In Posts 956 words 5 min

    LinuxNftablesDevopsSecurityBash

    nftables allows dynamic modification of address lists without reloading the entire ruleset. Using sets and nft monitor enables real-time ban-list updates, keeping services available while rules change on the fly. This note covers the minimal command …

    nftables allows dynamic modification of address lists without reloading the entire ruleset. Using sets and nft monitor enables real-time ban-list updates, keeping services available while rules change on the fly. This note covers the minimal command …

  • Cron setup: a practical walkthrough

    In Posts 1044 words 5 min

    LinuxCronDevopsAutomationBash

    Cron is the standard job scheduler in Linux, found in every infrastructure. Jobs pile up, logs accumulate, and the environment breaks things. Let’s walk through how to configure cron reliably and where it falls short. When to Use Cron and When to …

    Cron is the standard job scheduler in Linux, found in every infrastructure. Jobs pile up, logs accumulate, and the environment breaks things. Let’s walk through how to configure cron reliably and where it falls short. When to Use Cron and When to …