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
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.
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.
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.
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.
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.
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.