Linux server tutorials

Step-by-step tutorials for a Linux server: VPNs, web servers, databases, containers, security and backups. Each one names the distributions it was tested on.

6 of 50 tutorials in Backups

  1. Automate snapshots before risky changes with the CLI

    A small script that takes a Rack4 snapshot with the rack4 CLI, waits until it is ready and rotates old ones, then runs your risky change.

    beginner · 15 min · Ubuntu 24.04 LTS

  2. How to automate BorgBackup with borgmatic to a second server

    Back up files and databases to a second server over SSH with borgmatic: an append-only key, one YAML config, retention, checks and a daily timer.

    intermediate · 40 min · Ubuntu 24.04 LTS

  3. How to back up a Linux server with restic to S3 storage

    Encrypted nightly backups to any S3-compatible bucket with restic: database dumps, a systemd timer, a retention policy and a tested restore.

    intermediate · 30 min · Ubuntu 24.04 LTS

  4. How to restore a MariaDB database on a new server

    Move one MariaDB database to a new server with its users, grants, routines and events: rehearse the import, redo it at the cutover, check every table.

    intermediate · 40 min · Ubuntu 24.04 LTS, Debian 12 Oldstable

  5. How to restore a PostgreSQL database on a new server

    Move one PostgreSQL database to a new server with its roles, extensions and grants: rehearse the restore, redo it at the cutover, check every table.

    intermediate · 45 min · Ubuntu 24.04 LTS

  6. Move a Docker Compose app and its volumes to a new server

    Dump the database, export named volumes with a throwaway container, copy with rsync, restore under the same project name, check the data and keep a way back.

    intermediate · 45 min · Ubuntu 24.04 LTS, Debian 13 Stable

Ready when you are

Order a server