You can read the Russian version of this post here.
Restic, the simple backup program, is a fairly well-known piece of
software. Designed to be simple to both use and script on any system, it doesn’t
include any OS-specific setup examples, which is precisely what this post
describes.
So what we’re trying to achieve here:
- Automated backup runs daily at 12:00 AM (or any configurable time).
- The backup includes only important configuration files and data stores.
- The backup also includes all PostgreSQL databases, restorable with
psql -f
.
- The backup expands to an unlimited number of repos on need.
This site has recently got its Gemini version thanks to the
tool I wrote, gmnhg, available at gemini://tdem.in
. The tool
has already met its first milestone, v0.1.0, so this is
likely a good moment to recap on the whole idea of working in a Hugo
site into the Geminispace.
This post is available in Russian here.
There’s a certain point in life in which you realize you need to debug a
program that simply cannot be run on your working machine due to reasons. In
my case I have to debug a program that communicates with iwd, the
Intel wireless daemon for Linux. My workstation doesn’t have a Wi-Fi adapter,
so I needed some sort of a remote debugging hack.
In case you always wanted to write a script that temporarily turns off dunst
notifications in i3wm but have never taken the time to write one yourself,
here, have a working implementation in bash.
This post is available in Russian here.
DNSCrypt is a fairly popular way of protecting DNS traffic that is usually left
unencrypted from other people. dnscrypt-proxy, a client
program that implements DNSCrypt, also supports the DNS-over-HTTPS protocol,
allowing name resolution over DoH.
Unfortunately, leaving dnscrypt-proxy with its default settings while setting it
as the default resolver breaks name resolution in Docker containers. Fixing this
while not exposing a DNS resolver on the LAN is what’s described below.