vZilla https://vzilla.co.uk One Step into Kubernetes and Cloud Native at a time, not forgetting the world before Thu, 19 Nov 2026 14:13:07 +0000 en-GB hourly 1 https://wordpress.org/?v=7.1.5 https://vzilla.co.uk/wp-content/uploads/2018/01/cropped-profile_picture_symbol-32x32.png vZilla https://vzilla.co.uk 32 32 TL;DR: protecting SurrealDB on Kubernetes with Kasten https://vzilla.co.uk/vzilla-blog/tldr-protecting-surrealdb-on-kubernetes-with-kasten https://vzilla.co.uk/vzilla-blog/tldr-protecting-surrealdb-on-kubernetes-with-kasten#respond Thu, 19 Nov 2026 14:13:03 +0000 https://vzilla.co.uk/?p=3759 I have written two long posts about protecting SurrealDB on my Talos home-lab cluster with Kasten. This is the short version. If you only read one thing:

  • SurrealDB is one database with seven data models: relational, document, graph, full-text, vector, geospatial and time series.
  • It has no write pause, so a disk snapshot alone is only crash-consistent. But
    surreal export
    reads each database in one transaction, so the export is consistent while writes continue.
  • Kasten turns that export into real protection: a small keeper pod writes the export to its own volume before each backup, and Kasten snapshots the whole namespace and copies it off-cluster.
  • One backup covers every model, including the indexes, the functions and the database users, because the export writes definitions as well as data.
  • I proved it by breaking all seven models at once and restoring from object storage: all 7 health checks went red, and a restore took them back to green in 2 minutes 38 seconds.

Why bother?

Availability is not resilience. Kubernetes, or a managed service such as SurrealDB Cloud, keeps the database running, but it keeps serving a bad migration or a mistaken script just as faithfully. Getting the data back to a known good point, and being able to move it to another cluster, is on us.

How it works

  1. Before each backup, Kasten runs a blueprint that execs into a small keeper pod. The keeper runs
    surreal export
    for every database onto its own volume, then flushes it to disk with
    sync
    .
  2. Kasten snapshots the whole namespace: the app, SurrealDB, the keeper, the Secrets and both volumes. Then it exports the restore point to object storage.
  3. On restore, Kasten brings everything back, and the blueprint removes each database and re-imports it from the consistent dump.

Nothing pauses writes, and nothing in the restore is done by hand.

The backup flow: Kasten runs the prehook in the keeper, the keeper exports SurrealDB in one transaction to its own volume and syncs, Kasten snapshots both volumes and exports them to object storage
The backup flow: the keeper writes a consistent dump, Kasten snapshots and exports it.

Seven models, one backup

In SurrealDB these are not seven systems. They are tables, fields, edges and indexes in one database, so one export captures them all:

ModelUsed for in the demo shopWhat the export brings back
RelationalProduct catalogueTyped table, unique index, rows
DocumentCustomersSchemaless records as they are
GraphWho bought whatEvery edge, plus the stored functions
Full-textReview searchThe analyzer and the BM25 index
VectorSimilar productsThe HNSW index and the embeddings
GeospatialNearest storeThe location points
Time seriesLive order feedEvery time-ordered event

Break it, restore it

The demo app has a Simulate incident button that damages every model at once: prices times ten, a customer and their orders deleted, the review table and the vector index dropped, a store removed. Then I restored the namespace from the copy Kasten had exported to object storage.

StepResult
Incident0 of 7 checks pass
Restore from object storage2 minutes 38 seconds
After restore7 of 7 checks pass, the app reconnects by itself
After the incident: the health panel shows 7 of 7 checks failing and every price ten times too high
After the incident: 7 of 7 checks fail.
After the restore: all 7 checks pass again and prices are back to normal
After the restore from object storage: 7 of 7 pass.

One lesson from doing it for real: the restore re-creates the database, which silently drops SurrealDB live queries. The data was perfect, but the app’s live feed went quiet until I taught it to subscribe again. Test what your clients hold on the server, not just the rows.

Numbers worth knowing

MeasurementResult
Exports taken during continuous writes5 of 5 consistent
Restore from object storage to a healthy app2 min 38 s
Re-export with no changes0.7% of the first export
Re-export after 1% of records changed, consecutive keys6.4%
Re-export after 1% of records changed, scattered51%

The last two rows are the surprise. Kasten’s export deduplicates, but the dump is written in key order, so changes spread across a table touch almost every chunk. Time-ordered keys, such as SurrealDB’s

ulid()
, keep new data at the end and the export cheap.

Read more

Tested on Talos 1.12.6, Kubernetes 1.34.1, Kasten 9.0.8 and SurrealDB 3.3.5. It is a home-lab demo with a small dataset, so run the same test with your own data before you rely on it.

]]>
https://vzilla.co.uk/vzilla-blog/tldr-protecting-surrealdb-on-kubernetes-with-kasten/feed 0
One database, seven models: protecting all of SurrealDB with Kasten https://vzilla.co.uk/vzilla-blog/one-database-seven-models-protecting-all-of-surrealdb-with-kasten https://vzilla.co.uk/vzilla-blog/one-database-seven-models-protecting-all-of-surrealdb-with-kasten#respond Thu, 19 Nov 2026 13:39:46 +0000 https://vzilla.co.uk/?p=3752 In my last post I protected SurrealDB on my Talos home-lab cluster with Kasten. The test data was deliberately tiny: five products, three customers and a handful of graph edges. That proved the method, but it left an obvious question. SurrealDB’s whole pitch is that it is one database for many data models. Does one backup really bring all of them back?

So I built a small demo app that uses every model SurrealDB offers: relational, document, graph, full-text search, vector search, geospatial and time series, with live queries on top. Then I broke all of it at once and restored it. This post walks through each model, what the app uses it for, how the protection covers it, and what it looks like when a bad thing happens and you get everything back to the last known good, consistent state.

Before getting into the models, one distinction that is easy to blur: availability is not resilience. My Kubernetes cluster keeps the database available: if a node or a pod dies, it is rescheduled and SurrealDB comes back. A managed service such as SurrealDB Cloud does the same for its platform. But availability faithfully keeps serving whatever is in the database, including a bad migration, a buggy deploy or a script run against the wrong environment. Keeping the data recoverable to a known good point is on us. So is being able to restore it somewhere else: to another Kubernetes cluster, and perhaps one day from my own platform to a managed one.

That is also why I protect the whole application namespace with Kasten, not just the database.

surreal export
on its own is a perfectly good way to get a consistent copy of the data, and if that is all you need, it may be enough. For resilience I want more than the data:

surreal export
on its own
Kasten with the keeper blueprint
Consistent copy of each databaseYesYes: it uses the same export
The app, its Deployments, Services, routes and SecretsNoYes, from the same restore point
Scheduling, retention and an off-cluster copyYou build itPolicies, retention and export to object storage
RestoreRe-create everything around the data, then importOne action: the namespace comes back with a consistent database
Move to another clusterCopy files and redeploy by handRestore the exported restore point on another cluster that runs Kasten

In this post every restore went back into the same cluster. Restoring into a second cluster is the natural next test, and the dump is plain SurrealQL, which is also what a move to a managed SurrealDB would start from.

The demo app at a glance

The app is a small shop: a catalogue, customers, orders, reviews and stores. It is one Go binary that serves a single web page, and it runs in the same namespace as SurrealDB and the keeper. That detail matters: one Kasten restore brings back the app, its configuration and its data together.

demo architecture · one namespace, two routes, one Kasten policy
demo architecture · one namespace, two routes, one Kasten policy

The app talks to SurrealDB over the internal Service, as a database user that can only work in

demo/shop
. Two separate routes reach the cluster:
shop.<ip>.nip.io
for the app, and
surrealdb.<ip>.nip.io
for the SurrealDB Studio desktop app, so I can browse the data during a demo. A Generate orders switch keeps writes flowing, which is the point: the backup has to be consistent while the database is busy.

Each panel on the page is one data model, and a health panel at the top checks all of them.

The shop with orders running: the health panel shows all 7 checks passing, above the catalogue and the who-bought-what graph
Healthy, with Generate orders on: 7 of 7 checks pass. The graph fills up as orders arrive.
Review search with highlighted matches, similar products by cosine distance, nearest stores on a map, and the live order feed
The other four models: full-text search with highlights, vector similarity, nearest store, and the live order feed with orders per minute.

One database, seven models

Everything below lives in one SurrealDB namespace and database,

demo/shop
, defined in about 25 lines of SurrealQL. There is no second database, no search engine and no vector store bolted on the side.

ModelWhat the shop uses it forStored as
RelationalThe product catalogue, with typed fields and a unique nameSchemafull table
product
+ unique index
DocumentCustomers, whose shape can varySchemaless table
customer
GraphWho bought what, and “customers who bought this also bought”Edge table
ordered
(
customer->ordered->product
)
Full-textSearching product reviewsTable
review
+ analyzer + BM25 index
Vector“Similar products”
embedding
field on
product
+ HNSW index
GeospatialNearest store to each customerPoint fields on
store
and
customer
Time seriesOrders per minute and a live order feedTable
order_event
with time-ordered ULID keys + a live query

Relational: the catalogue

Prices have to be numbers and product names have to be unique, so

product
is schemafull: SurrealDB rejects a record that does not match.


DEFINE TABLE product SCHEMAFULL;
DEFINE FIELD price ON product TYPE number;
DEFINE INDEX product_name ON product FIELDS name UNIQUE;

Document: customers

Customers are schemaless: a name, a city and a location today, anything else tomorrow, with no migration.


UPSERT customer:alice SET name = 'Alice', city = 'Paris', location = (2.3522, 48.8566);

Graph: who bought what

An order is an edge between a customer and a product, and the edge has its own fields. Recommendations are a two-hop traversal with no JOIN: from a product back to its buyers, then forward to everything else they bought. A stored function,

fn::customer_total
, walks the same edges to total a customer’s spend.


RELATE customer:alice->ordered->product:kettle SET qty = 2;
SELECT out.name AS name, count() AS count FROM ordered
  WHERE in IN $p<-ordered<-customer AND out != $p GROUP BY name;

Full-text: review search

Reviews are indexed with an English analyzer (lower-case, stemming) and ranked with BM25. The app asks for highlights, so the matched words come back marked.


DEFINE ANALYZER review_en TOKENIZERS blank, class FILTERS lowercase, snowball(english);
DEFINE INDEX review_text ON review FIELDS text FULLTEXT ANALYZER review_en BM25 HIGHLIGHTS;
SELECT text, search::score(1) AS score FROM review WHERE text @1@ 'quiet';

Vector: similar products

Each product has a six-number embedding: how much it is about the kitchen, electricity, heat, blending, coffee and a budget price. I made these by hand so that the results are easy to explain on stage; a real app would use a model. An HNSW index answers nearest-neighbour queries by cosine distance.


DEFINE INDEX product_vec ON product FIELDS embedding HNSW DIMENSION 6 DIST COSINE;
SELECT name, vector::distance::knn() AS distance FROM product WHERE embedding <|3,40|> $p.embedding;

Geospatial: nearest store

Stores and customers have longitude/latitude points.

geo::distance
returns metres, so the nearest store is a sort.


SELECT name, geo::distance(location, (-1.4701, 53.3811)) AS metres FROM store ORDER BY metres LIMIT 1;

Time series and live queries: orders

Every order is an event keyed by a ULID, an ID that sorts by creation time, so the latest orders are simply the highest keys. The chart groups events by minute, and the live feed is pushed to the browser by a SurrealDB live query: the app subscribes once, and SurrealDB sends each new order as it is written.


CREATE order_event:ulid() SET at = time::now(), customer = $c, product = $p, qty = $q;
SELECT time::group(at, 'minute') AS minute, count() AS orders FROM order_event GROUP BY minute;
LIVE SELECT * FROM order_event;

The ULID choice matters for backup cost too. In the first post, scattered changes made the export upload close to a full dump, while changes on consecutive keys cost a small fraction. Time-ordered keys put new orders at the end of the table.

How one backup covers every model

The protection is exactly the one from the first post, unchanged: the keeper-PVC blueprint, one Kasten policy, one backup and one export. I did not touch the blueprint to add the app. Its

backupPrehook
lists every SurrealDB namespace and database, so the new
demo/shop
database was picked up on the first run.

what one backup captures · 7 models, 1 file per database
what one backup captures · 7 models, 1 file per database

The reason one backup covers seven models is that, in SurrealDB, they are not seven systems. They are tables, fields, edges and indexes in one database, and

surreal export
writes all of it, in one read transaction, as SurrealQL:

ModelWhat the export writes
Relational
DEFINE TABLE product SCHEMAFULL
, every
DEFINE FIELD
, the
UNIQUE
index, then
INSERT
of the rows
Document
DEFINE TABLE customer
, then
INSERT
of each document as it is
Graph
DEFINE TABLE ordered TYPE RELATION
, then
INSERT RELATION
of every edge with its fields;
DEFINE FUNCTION
for the stored functions
Full-text
DEFINE ANALYZER
, the
FULLTEXT ... BM25
index definition, and the reviews
VectorThe
HNSW
index definition and every
embedding
array
GeospatialThe points, as part of each record
Time seriesEvery
order_event
, under its ULID key

Two things in that table matter more than they look. First, one read transaction: every model is captured at the same instant, so an order event can never be in the backup while its graph edge is not, even with orders being written during the backup. The app writes both in one transaction, and the export reads both in one transaction. Second, definitions, not just data: the dump carries the analyzer and the index definitions, so a restore rebuilds working search, not just the rows.

The dump also carries the app’s own database user (

DEFINE USER demo ON DATABASE
), so the app can sign in again after a restore without anyone touching it. For the demo database, the dump was about 40 KB on the first backup, and 106 KB after an hour of generated orders.

The bad day

A backup only counts once you have watched it bring something back, so the app has a Simulate incident button. It damages every model in one go, which is roughly what a bad migration, a buggy deploy or a mistaken script against production does:

ModelWhat the incident doesWhat you see in the app
RelationalMultiplies every price by 10Catalogue prices jump; the relational check fails
DocumentDeletes
customer:bob
Bob disappears from the customer list
GraphDeletes Bob’s order edgesFewer lines in the graph; seeded edge count and Alice’s total no longer match
Full-textDrops the
review
table, and its index with it
Review search finds nothing
VectorRemoves the HNSW indexSimilar products returns nothing
GeospatialDeletes the Manchester storeSheffield’s nearest store changes
Time seriesDeletes the seeded order eventsThe time-series check fails

The health panel at the top of the app is what makes this visible in a demo. It runs one check per model against the seeded data, so live traffic never turns a check red; only damage does. Before the incident it shows 7 of 7. After it, 0 of 7.

Two of these are worth pausing on. Dropping a table and removing an index are schema changes, not data changes. A backup that only copied rows would bring the reviews back without their full-text index, and the products back without their vector index, and both searches would still be broken.

After the incident: the health panel shows 7 of 7 checks failing, prices multiplied by ten, and Bob missing from the graph
Seconds after the incident: 7 of 7 checks fail, every price is ten times too high and Bob has gone from the graph.
After the incident: review search reports the review table does not exist, similar products has no index, and Dana's nearest store is now London
Search fails because the table has gone, the vector panel has no index, and Dana’s nearest store is now London, 262 km away. The live feed even shows a “?” where an order lost its customer.

Back to the last known good state

The restore is one Kasten action. I picked the restore point that Kasten had exported to object storage, not the local snapshot, to prove the off-cluster copy is enough on its own. Here is the timeline from one run, with orders being generated throughout:

Time (UTC)What happened
12:42:01Kasten backup: the prehook exports every database, including
demo/shop
(106 KB), in one read transaction each
12:43:30Simulate incident: the health panel drops to 0 of 7
12:43:58Restore starts from the exported restore point
12:46:16Kasten has restored the PVCs and started the pods again, including the app
12:46:36The
restorePosthook
finishes: every database removed and re-imported from the dump taken at 12:42:01
12:46:36Health panel: 7 of 7

From the restore button to a healthy app took 2 minutes 38 seconds, most of it pulling the volumes back from object storage. Every model came back to the same instant, 12:42:01: prices, Bob and his orders, the reviews and their full-text index, the vector index, the Manchester store and the seeded order events. Orders written between the backup and the incident are gone, which is exactly what “last known good state” means.

Nothing was done by hand. There is no step where someone re-creates an index, re-runs a migration or re-defines the app’s database user: they are all in the dump.

After the restore: all 7 checks pass again, prices are back to normal and Bob is back in the graph
After the restore from the exported copy: 7 of 7 again, prices back to normal, Bob back in the graph, and orders flowing.

One thing the demo caught

The first time I ran this with the app inside the cluster, the health panel went green but the live order feed stayed silent. The app had reconnected while the database was still being re-imported, and removing a database in SurrealDB also removes the live queries registered on it, without closing the connection. So the app was connected, healthy and subscribed to nothing.

The fix was small: every five seconds the app checks that its live query is still listed in

INFO FOR TABLE order_event
, and subscribes again if it is not. The lesson is bigger: a restore can be correct for the data and still break a client’s state. Live queries, cached prepared statements and anything else a client holds on the server side deserve a test after a restore, not just the rows.

I ran the whole cycle again with the fix deployed. Five seconds after it reconnected, the app logged

live query ... on order_event no longer exists (database replaced?)
, subscribed again three seconds later, and the live feed was back with all 7 checks green. That restore took 2 minutes 48 seconds.

What this does and does not prove

The demo is honest about its size, and so should this post be.

It provesIt does not prove
One export captures every model in a database: records, edges, schema, analyzers, vector and full-text indexes, functions and database usersThat it scales to your data: the shop’s dump is around 100 KB. Run the same test at real size, with your data types
The copy is consistent while writes continue: each database is read in one transactionThat separate databases are consistent with each other: each one is exported in its own transaction, so keep data that must agree in one database
A restore from the off-cluster copy brings every model back, and the app reconnects by itselfHow long index rebuilds take at scale: on import, SurrealDB rebuilds the HNSW and full-text indexes from the data, so restore time grows with the data, not just the bytes
The restore puts the database back to the backup: changes made after it are gone, which is what you want after a bad changeRecovery to a point between backups: there is no log replay, so the backup schedule is your recovery point

Root- and namespace-level users are not in a database export either. They come back with the SurrealDB data volume, which Kasten restores too, or from the Kubernetes Secret on an empty instance.

Try it yourself, and what’s next

The app is open source at MichaelCade/surrealdb-webapp: a single Go binary using the official SurrealDB Go SDK, plain HTML and JavaScript with no external libraries, and Kubernetes manifests. GitHub Actions publishes the image to

ghcr.io/michaelcade/surrealdb-webapp
. The README has a ten-minute demo script:

  1. Tour the panels with Generate orders on.
  2. Run the Kasten policy while the orders keep flowing.
  3. Click Simulate incident: 7 of 7 becomes 0 of 7.
  4. Restore from the exported restore point.
  5. Watch the health panel return to 7 of 7.

You need SurrealDB, the keeper and the blueprint from the blueprint-ai

surrealdb-example
runbook first; the app adds one setup script and one manifest. To browse the data while you demo, connect the SurrealDB Studio desktop app to the database through its own route.

ComponentVersion tested
Talos / Kubernetes1.12.6 / 1.34.1
Kasten9.0.8
SurrealDB3.3.5, SurrealKV
SurrealDB Go SDK2.0.1

Next up is SurrealDB 4.0, which drops RocksDB and TiKV and keeps SurrealKV as its only on-disk engine. The Go SDK already supports it, so the same app should make a good test of the upgrade.

Sources

]]>
https://vzilla.co.uk/vzilla-blog/one-database-seven-models-protecting-all-of-surrealdb-with-kasten/feed 0
Protecting SurrealDB on Kubernetes with Kasten https://vzilla.co.uk/vzilla-blog/protecting-surrealdb-on-kubernetes-with-kasten https://vzilla.co.uk/vzilla-blog/protecting-surrealdb-on-kubernetes-with-kasten#respond Thu, 19 Nov 2026 13:37:34 +0000 https://vzilla.co.uk/?p=3744 I have been exploring databases a lot more in 2026, and the landscape is busy. There are “new” database vendors everywhere, on Kubernetes and as PaaS or DBaaS offerings. Some build on the shoulders of giants, mainly PostgreSQL and MySQL. Others start from a blank page.

One of the blank-page databases I keep coming back to is SurrealDB. In this post I deploy it on my home-lab Talos Kubernetes cluster, load a small sample dataset, and then protect it with Kasten. The aim is a copy that is consistent at the application level, sent off-cluster to object storage, and proven by restoring it.

Everything here is open source: the blueprint, the runbook and the test data are in a pull request to the blueprint-ai repository under

surrealdb-example
.

What is SurrealDB, and where could it be used?

SurrealDB is a multi-model database written in Rust: one engine for data you would otherwise spread across several databases. According to its README, it combines:

ModelWhat that means in practice
Document and relationalTables that can be schemaless or schemafull, with typed fields and unique indexes
GraphRecords joined by typed, directed edges (
RELATE a->ordered->b
) and queried without JOINs
Key-value, time-series, geospatialNative data types instead of extensions
RetrievalFull-text, vector and hybrid search

You query all of it with SurrealQL, a SQL-like language, over HTTP, WebSocket or GraphQL, with multi-table ACID transactions. It also has row-level permissions, live queries that push changes to the application, stored functions, and an MCP server for AI agents. That combination is what makes it more than “another database”: it can act as the API back end as well as the data store.

The README lists the use cases it is aimed at: applications that mix several data types, a data layer for AI agents, knowledge graphs, real-time apps such as recommendation engines and fraud detection, and embedded or edge workloads.

Where can I run SurrealDB?

Almost anywhere: the same single binary is the server, the CLI and the import/export tool.

WhereHow
ManagedSurrealDB Cloud, where SurrealDB runs the infrastructure, monitoring and backups
Laptop or VMOne binary:
brew install surrealdb/tap/surreal
on macOS, an install script on Linux and Windows
Container
docker run surrealdb/surrealdb:<tag> start
KubernetesThe official Helm chart (
surrealdb/surrealdb
), a single-replica Deployment with an optional PVC
EmbeddedAs a library inside an application, including in the browser

The choice that matters most for protection is the storage engine, set by the start path:

EngineSurrealDB 3.3SurrealDB 4.0
memory
(the Helm chart’s default)
Yes, nothing written to diskYes
surrealkv://
YesYes, the only on-disk engine
rocksdb://
YesNot in the build
tikv://
(distributed)
YesNot in the build

I used SurrealKV on 3.3.5, because it is the engine that carries forward to 4.0. One trap: the Helm chart still defaults to SurrealDB 2.6 and to

memory
, so pin
image.tag
and set
surrealdb.path
, or your “database” disappears with the pod.

The sample application

The sample is a tiny shop of about 1.2 KB, chosen so that a restore which only brought back rows would visibly fail. It lives in namespace

kasten
, database
test
:

ObjectContentWhat a restore must bring back
product
Schemafull table, 5 records,
UNIQUE
index on
name
Schema and index definitions, not just data
customer
Schemaless table, 3 recordsFree-form documents
ordered
5 graph edges:
RELATE customer:alice->ordered->product:1 SET qty = 2
Relations, with their own fields
fn::order_total
Stored function that walks a customer’s
ordered
edges and sums price × quantity
Logic stored in the database

One query checks everything at once, because the totals only come out right if the function, the edges and the products all survived:


RETURN { products: count(SELECT * FROM product), customers: count(SELECT * FROM customer), orders: count(SELECT * FROM ordered), alice_total: fn::order_total(customer:alice), bob_total: fn::order_total(customer:bob), chen_total: fn::order_total(customer:chen), has_index: (INFO FOR TABLE product).indexes.product_name != NONE };

A healthy database returns

alice_total 110, bob_total 160, chen_total 105
with 5 products, 3 customers, 5 orders and the index present. The full seed.surql and
verify.surql
are in the pull request.

To be clear, this is a very basic concept and dataset, built to show the protection workflow rather than a real application. A production database will hold far more data, and probably other data types too: vector embeddings, full-text indexes, time-series and geospatial records, live queries and more users and permissions. The export is a logical SurrealQL dump, so it should carry all of that, but I only tested tables, an index, a function and graph edges. Before you rely on this pattern, repeat the backup-and-restore test with data that looks like yours, at its real size.

Gotchas: running SurrealDB on Talos

None of these stopped the project, but each one cost time, so here they are in one place. The cluster is Talos 1.12.6 with Kubernetes 1.34.1 and Rook Ceph RBD (

ceph-block
) for storage.

GotchaWhat you seeFix
Talos warns on the
restricted
Pod Security profile by default
helm install
prints “would violate PodSecurity restricted:latest”
Add
runAsNonRoot
, a
RuntimeDefault
seccomp profile,
allowPrivilegeEscalation: false
and drop all capabilities in the chart values
The image names its user
nonroot
, not a number
Pod stuck in
CreateContainerConfigError
: “image has non-numeric user (nonroot), cannot verify user is non-root”
Set
runAsUser: 65532
and
runAsGroup: 65532
The production image has no shell
kubectl exec ... sh
fails: it is distroless (Chainguard
glibc-dynamic
)
Use the
-dev
tag of the same version for anything that needs a shell
surreal
is not on the
PATH
in the
-dev
image
sh: surreal: not found
Call
/surreal
The CLI reads piped input one line at a timeA statement written over several lines returns parse errors for each partial lineKeep each statement on one line in files you pipe to
surreal sql
surreal sql
exits 0 when a statement fails
Scripts carry on after an error; the error is a JSON string such as
["The table 'x' does not exist"]
Check the output, not the exit code
surreal --help
prints environment defaults
The root password from
SURREAL_PASS
appears in the help text
Never call
--help
in automation whose output is logged
SurrealDB 3 re-creates the default
main
database as soon as it is removed
REMOVE DATABASE main
then
DEFINE DATABASE main
fails: “already exists”
DEFINE DATABASE IF NOT EXISTS
The Helm chart defaults to 2.6 and the
memory
engine
Data is gone after a pod restartPin
image.tag
and set
surrealdb.path: surrealkv:///data/srdb

What about protecting this database?

SurrealDB gives you two building blocks, and neither is a backup strategy on its own.

OptionWhat you getWhat is missing
surreal export
on its own
A consistent SurrealQL file per databaseScheduling, retention, an off-cluster copy, immutability, and the rest of the application (Secrets, Services, the Deployment itself)
A CSI snapshot of the data PVC on its ownThe whole volume, fastOnly crash-consistent: SurrealDB has no command to pause writes or flush a clean state, so the copy must recover as if the power was cut

The interesting part is the combination, and one fact makes it work:

surreal export
reads a whole database inside one transaction. I checked this in the source, then tested it under load. A client committed transactions that each wrote a matching pair of records into two tables, about 50 per second on top of 20,000 pairs. Five exports ran during the writes, and all five had exactly equal counts in both tables. An export that was not a single snapshot would have more records in the table it exported second.

So the plan is: let SurrealDB produce the consistent copy, put that copy on a PVC, and let Kasten do what it is good at with PVCs. This is pattern 4 of the blueprint-ai method, a dump on a permanent keeper PVC:

  • A small keeper Deployment sits next to SurrealDB. It runs the
    -dev
    image of the same SurrealDB version, so it has the
    surreal
    CLI and a shell, and it permanently mounts its own PVC.
  • Before Kasten snapshots anything, Kasten execs into the keeper. The keeper exports every database over HTTP to its PVC, then runs
    sync
    .
  • Kasten snapshots both PVCs and exports the restore point to object storage.

Why a keeper and not a second volume on the SurrealDB pod? Because the production image has no shell, so nothing could run

sync
inside it, and a CSI snapshot copies the block device, not the page cache. Without
sync
, the dump can land in the snapshot with the right name and zero bytes.

How Kasten orchestrates the whole application

Kasten protects the whole namespace in one policy: the Deployments, Services, the Secret and both PVCs. A Kanister blueprint adds the SurrealDB-specific steps at the right moment.

backup flow · SurrealDB, keeper and Kasten, 5 steps
backup flow · SurrealDB, keeper and Kasten, 5 steps

The arrows run in the order of a backup. Only the keeper writes during the prehook, and its

sync
is the last thing that happens before Kasten snapshots anything.

The blueprint has two actions:

ActionWhen Kasten runs itWhat it does
backupPrehook
Before the PVC snapshotsExports every namespace and database into a staging folder with a SHA-256
MANIFEST
, swaps it in, runs
sync
last, then re-checks every file. An empty export or a bad checksum fails the backup.
restorePosthook
After a restore, once the pods are runningChecks the dump, then removes and re-imports each database (next section)

There is no

backupPosthook
, because nothing was paused, so there is nothing to undo.

A BlueprintBinding attaches the blueprint to any Deployment labelled

blueprint-ai/surrealdb-keeper: "true"
, in any namespace. The binding is on the keeper, not on SurrealDB, because the keeper is the pod the blueprint execs into. A second SurrealDB instance only needs its own keeper; nothing in
kasten-io
changes.

The policy itself is a plain Kasten policy: back up the namespace, then export the restore point to an S3 Location profile. In my lab, the whole backup and export of the small dataset took about a minute.

What does a restore workflow look like?

A restore is one Kasten action with no manual steps before it, whether it goes back in place or into a new namespace. Two copies come back, and only one of them is authoritative:

  1. Kasten scales the workloads down and restores both PVCs from the restore point, from the local snapshot or from object storage.
  2. The pods start again. SurrealDB starts on its crash-consistent data volume, and SurrealKV recovers from it.
  3. Kasten runs the blueprint’s
    restorePosthook
    in the keeper, which:
    1. checks every dump file against the SHA-256 manifest before touching anything, so a damaged dump never costs you the live data;
    2. waits for SurrealDB to answer;
    3. for each database in the dump, runs
      REMOVE DATABASE
      ,
      DEFINE DATABASE IF NOT EXISTS
      , then
      surreal import
      .
  4. Every database is now exactly what the consistent dump held. Records written after the backup do not survive, which is the point of a restore.

The data volume still matters for what a database export does not hold: root- and namespace-level users and access methods. On an empty instance, the root user comes back from the Kubernetes Secret.

To test it, I damaged the data after the backup and restored from the restore point that Kasten had exported to object storage, which proves the off-cluster copy works on its own:

CheckBefore restore (damaged)After restore
alice_total
2058 (kettle price changed to 999)110
bob_total
, orders
0, 3 (Bob deleted, with his 2 edges)160, 5
customer:mallory
Present (added after the backup)Gone
RestoreAction
Complete
; the hook logged
Restoring the dump taken at 14:44:32Z
then
Restore complete

I then deleted everything from the cluster and rebuilt it by running the runbook’s commands exactly as written, and got the same result.

Do we get any storage savings from Kopia?

Yes, but how much depends on where the data changes, not how much of it changes. Every backup writes a full dump, so the dump itself is not incremental. Kasten exports to object storage through Kopia, though, which splits files into content-defined chunks and uploads only chunks it has not seen before.

To measure it, I loaded 30,000 records of about 1 KB each with random content: a 30.8 MiB dump next to a 32.1 MiB SurrealDB data volume. Random content matters, because identical rows deduplicate far better than real data and make the result look much better than it is. I then exported four times and measured how much the repository in the bucket grew each time. Both PVCs are exported, so the figures include the data volume as well as the dump.

RunChange since the previous runRepository growthShare of the first export
130,000 records loaded56.9 MiB (first export)100%
21% of records rewritten, scattered at random29.1 MiB51%
3No change0.4 MiB0.7%
41% of records rewritten, consecutive keys3.6 MiB6.4%

What that means:

  • Unchanged data is almost free. An unchanged database produces a byte-identical dump, and SurrealKV did not rewrite its files while idle.
  • Scattered changes cost close to a full upload.
    surreal export
    writes records in key order, in
    INSERT
    statements of 1,000 records. 300 random updates put about 10 changes in every statement, so every Kopia chunk of the file was new.
  • The same 300 changes on consecutive keys touched one region of the file, and most chunks were reused.

For planning: a workload that mostly appends records with increasing keys (events, logs, time series) should export cheaply. A workload that updates rows across a large table should be budgeted as close to a full dump per backup. SurrealDB’s default record IDs are random, so new records behave like the scattered case unless the application uses ordered IDs such as

ulid()
. I worked that last point out from runs 2 and 4 rather than measuring it separately.

Wrapping up, and what’s next

SurrealDB has no write pause, but it does have something nearly as useful: an export that reads each database as one consistent snapshot. Put that export on a keeper PVC, flush it, and Kasten turns it into scheduled, off-cluster, restorable protection for the whole application, with no write pause and a restore that needs no manual steps.

ComponentVersion tested
Talos / Kubernetes1.12.6 / 1.34.1
Kasten9.0.8
SurrealDB (Helm chart 0.5.0)3.3.5, SurrealKV
StorageRook Ceph RBD

The blueprint is an

-example
on purpose: it encodes my versions, storage class and namespace layout. Copy it, adapt it, and run your own backup-and-restore test before you trust it. It is in review as kastenhq/blueprint-ai#21, with the runbook, the test data and a concept deck.

Next up:

  • SurrealDB 4.0, released in November 2026. It keeps the same export and import CLI but drops RocksDB and TiKV, leaving SurrealKV as the only on-disk engine. Because 3.3 already runs on SurrealKV, I expect mostly an image-tag change, but that is a test to run, not a promise.
  • Talos is still on my technology watch list, and this whole project ran on my Talos home-lab cluster. If you want to hear more about it, I have covered Talos in earlier posts on this blog.

Sources

]]>
https://vzilla.co.uk/vzilla-blog/protecting-surrealdb-on-kubernetes-with-kasten/feed 0
Veeam Backup & Replication for OpenShift Virtualization https://vzilla.co.uk/vzilla-blog/veeam-backup-replication-for-openshift-virtualization https://vzilla.co.uk/vzilla-blog/veeam-backup-replication-for-openshift-virtualization#respond Wed, 09 Sep 2026 07:39:57 +0000 https://vzilla.co.uk/?p=3721 Veeam just released a new plug-in for Red Hat OpenShift Virtualisation, this plug-in brings the ability to use Veeam Backup & Replication to protect your VMs on Red Hat OpenShift Virtualisation.

Some people might be familiar with Veeam Kasten, Veeam Kasten provides the Kubernetes native way to protect containerised workloads and Red Hat OpenShift Virtualisation as well as SUSE Harvester (Virtualisation) as well. Between you and I, it does also work with Kubevirt but from a support perspective it is just the ones listed above for now.

So what does this mean?

It means if you have a blend of containerisation and VMs on one cluster then you can continue to use Kasten to protect these workloads, if you only have containerised workloads that require protection you can also continue to use Kasten. If you are only running VMs on Kubernetes and you are familiar with the Veeam Backup & Replication console and workflow then you now have another option. We will get into some of the benefits and features in this post.

Veeam Universal Licensing

Portability: Move licenses between different workloads (such as cloud, virtual, and physical servers) without buying new SKUs.
Flexibility: Adapt coverage dynamically as your IT infrastructure scales or shifts to hybrid/multi-cloud environments.
Zero Lock-In: Freely reassign or relocate workloads across platforms without administrative penalties

This then spans multiple workloads:

  • Virtual hypervisors (e.g., VMware, Nutanix AHV, Red Hat OpenShift Virtualisation)
  • Hyperscaler clouds (AWS, Azure, Google Cloud)
  • Physical servers, workstations, and endpoints (Windows, Linux, macOS, Unix)
  • Unstructured data (NAS, object storage, file shares)
  • Enterprise applications (Oracle, SAP)

Portability – Restore to / from

Not only is the license portable, but for many years now the Veeam backup file format for image based backups has had the ability to restore to any supported hypervisor or public cloud location. This might be when bad things are happening but it could also be useful for seeing how a workload looks and runs in a new target location, it could be used for test and development vs affecting the production VM.

Installation

As mentioned this is a Plug-In that can be downloaded from the veeam.com site. Get yourself logged in and then navigate down to the additional downloads section, select Virtualization Plug-Ins.

image

You will see a long list of all the supported Plug-Ins available, scroll down until you find “Veeam Plug-In for Red Hat OpenShift Virtualization” You will see two options, one for Linux and another for Windows, this choice will depend on your Veeam Backup & Replication server deployed Operating System.

image 1

My VBR server is using the Linux variant so I have downloaded this file.

image 2

Our next step is to login to the Veeam Host Management Console, this will be at https://192.168.169.220:10443/ when you get logged in head down to Logs and Services and then over to Components. Official Documentation here

image 3

Now you want to select “Add component” and then browse to your bndl file and click upload

image 4

When you hit upload, it will then provide you with this message saying about possible reboots, and give you the option to install now.

image 5

You will then see some running commentary on the installation / update process

image 6

Hopefully in about 16 seconds you too will have a successful installation.

image 7

In order to use the plug-in we need to use the thick client on a windows machine, the first time I ran the thick client i got this update requirement.

image 8

Once that update is complete you can connect and navigate to managed servers, hit add server > virtualization platforms and you should now see Red Hat OpenShift Virtualization, if you checked this before you would have noticed you did not have this… trust me.

image 9

Before we add this server though we need to run through the deployment into our Kubernetes cluster, this will be done via a helm chart.

First thing we need to do is add the helm repository.


helm repo add vkp https://charts.veeam.com

then we update our repositories


helm repo update
image 10

Now we can install from the helm chart. I am going to link to the docs for some additional talk track


helm install vkp vkp/vkp --namespace=vkp --set eula.accept=true --create-namespace

I will let you run through the docs but to get to an end game here ready to protect some VMs we run through and add our vkp to our vbr… we do seem to love an acronym here.

image 11

On the next step we are going to need a secret from our cluster.


kubectl get secret vkp-token -n vkp -o jsonpath='{.data.token}' | base64 -d
image 12

Click apply and you might have a certificate trust pop up, hit ok and finish.

Now when you go into your inventory, if you have VMs you will see something like this

image 13

There are then lots of options when you get this first backup completed, we can perform granular recoveries of files and folders, we can restore these VM backups to other locations, be it other hypervisors or public cloud. As well as the reverse of this.

]]>
https://vzilla.co.uk/vzilla-blog/veeam-backup-replication-for-openshift-virtualization/feed 0
Protecting Omarchy Linux Desktops with Veeam https://vzilla.co.uk/vzilla-blog/protecting-omarchy-linux-desktops-with-veeam https://vzilla.co.uk/vzilla-blog/protecting-omarchy-linux-desktops-with-veeam#respond Thu, 27 Aug 2026 17:01:58 +0000 https://vzilla.co.uk/?p=3690 Omarchy is taking the Linux Desktop and developer community by storm, standing out as a serious contender for the year of the Linux Desktop. My daily driver for some time now has been Manjaro Linux, which is Arch Linux-based.

A hurdle—though we don’t let hurdles get in the way of a good story and use case—is support. The Veeam Agent for Linux officially supports enterprise and LTS distributions like RHEL, Rocky, Alma, Ubuntu, Debian, SLES, and Fedora. Arch Linux isn’t on that official matrix, but spoiler alert: I have it protecting my rolling-release desktop just fine.

Gotchas


Support aside, a couple of things can trip up backup jobs on fast-moving distros. Whenever Manjaro or Omarchy pushes a major kernel update, Veeam requires the matching linuxXX-headers package installed concurrently so the veeamblksnap DKMS module can recompile successfully. Omarchy runs fast-moving Arch kernels, meaning if your headers fall behind the kernel version, the out-of-tree block snapshot driver will fail to build.

Package Management


Omarchy uses the standard Arch User Repository (AUR). While DHH and the Omarchy team have discussed building custom repository efforts, right now we rely on standard Arch tooling to pull down packages.

Getting Started


For testing purposes, I set this up inside a VM using VirtualBox on my Manjaro machine—though wiping the bare-metal desktop might be the next adventure. Running omarchy update from the foot terminal gives you a clean baseline to start from. From that terminal I ran


omarchy update


Step 1 – Check system and kernel headers are up to date


The goal here is to get Veeam Agent for Linux installed and configured to backup and recover any data that goes bad. Out of the box at least at the time of writing this some of the packages we need are either not included.

As you can see we are missing some of the packages we need here. We can get them installed with the following command.


sudo pacman -Syu --needed linux-headers dkms
3afterinstalling

Lets just check we get a better output from the first command

3confirmingpackageinstall

Step 2 – Install Veeam Agent for Linux

The foundation is set with the above and we have the required packages, now we are ready to get the Veeam Agent deployed so that we can start taking some of those sweet backups.


yay -S veeam
Screenshot 20260827 114640

There are a couple of prompts throughout the installation that we have to hit y on. But also take note of what other packages are being installed here. I actually don’t know if those initial packages would have been deployed here, not had chance to just go straight in with a Veeam installation.

Screenshot 20260827 114710

Continued, below you will see that the veeamblksnap package is being installed. You can read up on this here

Screenshot 20260827 114723

And the final one in the sequence. We finish off with the agent installation

Screenshot 20260827 114731

Step 3 – Veeam Agent TUI & Configure

Installed, Job Done. Nope a little bit of configuration needs to take place. There is a TUI and a CLI and will cover both as we move through the rest of this post. Running the following command the first time after install will open a configuration TUI.


sudo veeam
Screenshot 20260827 114836

Have fun reading the EULA and accept the terms. The following screen is if you want to create a bare metal recovery ISO, I skipped this step for now.

Screenshot 20260827 114845

Next up we have the licensing, “But you said this was free” it is select workstation and Finish. The community edition of Veeam enables you to run this with minimum support, and as Arch Linux is not documented in the support documentation we are good to go.

Screenshot 20260827 114857

To wrap up the configuration, we get a nice message saying we are finished.

Screenshot 20260827 114905

We can now move onto the Configure, selecting the c key will put us through another wizard. Here we are going to create a backup job. So give the job a name, I think I left this as the default. If you have multiple machines you might want to be a little more specific.

Screenshot 20260827 114918

I have to say this is where that green colour, was really quite hard to read. Now we can choose what sort of a backup do we want to perform. The top option is “Entire Machine (Recommened)” But you can see if you know you only want to protect a specific volume, file and folder structure then you can choose those, I have not tested them at all.

Screenshot 20260827 114925

Next up, where do we want to send these backups, we have a few options and the commercial product of the agent has a few more. But for my backups I want to send them to a simple NFS share (note on this later)

Screenshot 20260827 114947

For the NFS or SMB option for a shared folder, provide your configuration, this is where you can also define your retention.

Screenshot 20260827 115046

Our next mission is to define our backup schedule. This will be a full backup on day 1 and then incremental backups after this. (Only the changes since the last backup)

Screenshot 20260827 140654

Finally, a summary of what we configured for our first backup job.

Screenshot 20260827 140706

I selected “Start Job now” so as expected the job started.

Screenshot 20260827 140735

You can monitor the backup job if you have nothing better to do at this point

Screenshot 20260827 140744

And at some point the job will complete, hopefully successfully like mine did

Screenshot 20260827 141231

Step 3a – Sorry if you went through the above and hit the same wall

As I mentioned we can also manage this backup via a CLI as well, I will touch on that shortly. First I need to add a little gotcha that I stumbled across purely because I was wanting to use NFS. Omarchy doesn’t come with an NFS client out of the box.

Screenshot 20260827 115058

So I had to exit out of the TUI and back into the shell, hopefully you are smarter than me and are able to either just open another terminal and run the following to get that NFS client on the system.


sudo pacman -S nfs-utils
Screenshot 20260827 140610

Then we go back into the TUI if you did have to leave and run through that Step 3 process again.

Step 4 – From the CLI

I kept teasing you with talk of a CLI, to access the CLI for the agent you can use the following command


veeamconfig

I won’t go through everything you can do but the usual help flag will get you started, but for example if you now wanted to trigger your next incremental backup or maybe you didn’t hit that cross on start backup now you could run.


veeamconfig job start --name "BackupJob1"


Pro-Tip for Rolling Distros: Because Arch environments change rapidly, subvolume block layouts can occasionally cause incremental change-tracking metadata (veeamblksnap) to throw an ENOSPC or block translation error if extents shift. If your incremental run ever trips up, forcing a single active full baseline (veeamconfig job start –name “BackupJob1” –activefull) resets the change-tracking index cleanly and keeps your subsequent incremental chain fast and reliable.

Step 5 – Testing some restore scenarios

Ok, great we have a backup but what you really want is the backup. Things will go wrong regardless of the system you are running on so we need to be able to do some sort of restore. I am going to show some very simple file level recovery options via the TUI and the CLI.

I have created a mission critical file as you can see,

Screenshot 20260827 114803

Sneakily I created this before we even started the Veeam backup so I know that our backup has this file in. We need that back!

Screenshot 20260827 141313

And surely its as simple as going into the TUI or CLI, mounting that backup and copying the file from one place to the other… Well not really.

Screenshot 20260827 141521

But we need that file back so we had to do some hacking. I confirmed the version of FUSE that we get out of the box with Omarchy is newer than the one Veeam is looking for.

Screenshot 20260827 141709

But that did not stop me! I was determined to get that file back not just for me, but for you all as well. You will see from the short video below I went on a wild ride of compiling the old FUSE version for us to use for our restores.

First we needed some more packages

Screenshot 20260827 144538

Second we needed to clone the repo for fuse.

Screenshot 20260827 144702

Then it was build and compile time.

There is a step in the above video where I have to edit a specific veeam.ini file


sudo nano /etc/veeam/veeam.ini

In this file we have to make a change to point to this specific fuse option.

And this libfuse3.so.3 also in the video above is what we built and then moved to that location.


# Path to fuse3 library (for file-level restores)
fuse3Path = /opt/veeam/transport/libfuse3.so.3

I think that covers everything for now, way longer than I anticipated but wanted to share.


The Year of the Linux Desktop might still be a running joke in some circles, but when you can comfortably snapshot, protect, and recover a bleeding-edge Arch-based desktop environment using enterprise-grade tooling, it feels a lot closer than ever.

]]>
https://vzilla.co.uk/vzilla-blog/protecting-omarchy-linux-desktops-with-veeam/feed 0
A Blueprint for Learning New Tech https://vzilla.co.uk/vzilla-blog/a-blueprint-for-learning-new-tech https://vzilla.co.uk/vzilla-blog/a-blueprint-for-learning-new-tech#respond Thu, 27 Aug 2026 06:58:05 +0000 https://vzilla.co.uk/?p=3685 Many of us are learning new tech are doing it for one reason—to get a new job. That’s valid, but it completely changes how you study, often leading straight into tutorial hell and forgotten fundamentals. When I set out to map 90DaysOfDevOps, and now while tackling data engineering, my baseline was different. I wanted to build, break, and understand the mechanics simply because the space interested me. Whether you’re trying to pivot careers or just add a new superpower to your home lab, here is the blueprint I follow to actually make new technologies stick.

Today, this challenge is amplified even more by AI. We live in an era where an LLM can spin up a Docker compose file, write a complex SQL query, or draft an entire CI/CD pipeline in seconds. It’s tempting to use AI to bypass the friction entirely. But if the AI does all the thinking, you get the illusion of progress without the muscle memory. The trick isn’t using AI to avoid learning—it’s using AI as an interactive co-pilot to explain error logs, challenge your assumptions, and accelerate your hands-on loops. Be smart with AI not addicted! Use it as a tool.

Start with Clear Goals (Treat Tech as a Tool, Not a Collection)

When you first look at a massive landscape like DevOps, Data Engineering, or Cloud-Native architecture, the sheer volume of tools can cause instant paralysis.

  • Define the Scope: Break the massive umbrella term down into discrete domains (e.g., version control, CI/CD, infrastructure as code, monitoring).
  • Audit Your Baseline: Honestly map out what you already know. Don’t start from absolute zero if you already understand networking or basic scripting.
  • Anchor Your “Why”: Are you trying to pivot careers, solve a specific bottleneck in your current role, or just scratch a technical itch? Your motivation dictates the depth required.
  • Write the Roadmap: Plan your milestones before you touch a keyboard so you have a finish line in sight.

Theory vs. Application (The 80/20 Hands-On Rule)

We have all accumulated digital graveyards of half-finished Udemy courses and O’Reilly books. Passive reading feels like progress, but it’s an illusion.

  • Resist Tutorial Hell: Limit the time spent watching videos or reading docs to the absolute minimum needed to understand why something works.
  • Embrace the Friction: No cheat codes or blindly copy-pasting GitHub snippets. Type out the code, break the config files, and stare at the error logs—that is where the real learning happens.
  • Find Your Medium: Know how you best absorb foundational concepts (whether it’s technical documentation, video walk-throughs, or audiobooks on a commute), but always pivot quickly back to the terminal.

Solve Real, Relatable Problems

    Abstract tutorials are boring, and they don’t stick. The best way to learn a technology is to force it to solve a problem you actually care about.

    • Build a Home Lab: Spin up a mini rack, deploy a Kubernetes cluster, or automate a painful manual chore around your house or workflow. I have written a lot about homelabs here, they don’t have to be expensive, especially today where it seems components are around 10x more than they were a year ago! A laptop or even a VM on your machine is something to play with.
    • Scratch Your Own Itch: Build something useful—even if a commercial tool already exists. The act of engineering the solution teaches you the underlying mechanics. I have tons of ideas that pop into my head, they are not always niche ideas but they are great to just build a prototype, understand what is happening and adapt, improve or delete it and move on.
    • Make It Interesting: If you are bored by the sample project (like yet another generic to-do app), change the domain to something you love, whether that’s tracking video game stats or analysing sports data. I am currently learning lots about data engineering and using my cricket team stats and data to help keep me interested.

    Incremental Learning & Feedback Loops

      Learning isn’t a linear climb; it’s a series of iterations. Once you get something working, the real question is: Could it be better?

      • Iterative Refactoring: Get the MVP working first. Once it’s functional, go back and optimize it for security, efficiency, or scalability.
      • Embrace the Error Log: Treat error messages not as failures, but as your primary feedback mechanism. Debugging teaches you more in ten minutes than a smooth tutorial does in ten hours. “Learn from your mistakes”, why did this fail?
      • Build in Public: Share your code, document your journey, or write about what broke and how you fixed it. Explaining it to others forces absolute clarity. I appreciate not everyone is a blogger or youtuber but it’s a great way to build accountability, during 90daysofdevops I was tweeting updates every single day and I know people were getting annoyed “Just let us know if you complete it and will go back and read it then” but me putting 10/90 out there was my own accountability to finish that long list and learn.

      Consistent and Correct Action

        Occasional weekend binges won’t build durable neural pathways. Technology moves too fast for sporadic cramming. I can sit on YouTube all day watching videos about relatable technical videos that are associated with the plan, but sometimes that is just background noise and its not solid learning time. You have to have that right mindset to be in learning mode.

        • Compound Your Efforts: Thirty minutes of focused, hands-on practice every single day beats a five-hour marathon session once a week.
        • Practice the Right Habits: “Correct” action means not taking shortcuts early on. Learn the proper syntax, understand security best practices, and use version control from day one so you don’t have to unlearn bad habits later.

        I am no learning oracle by any stretch, I was terrible in school. I have just been able to pick up topics I am interested in, I am equally in a privileged world where I have the time to spend time and learn new areas without the forcing function of finding a job or being desperate for that move into this new area.

        As with all the posts, sometimes I write stuff down for me to go back to and remember the why. But as always if this helps one person get a plan together and execute on that then it is worth posting on this little corner of the internet for all the AI monsters to find.

        ]]>
        https://vzilla.co.uk/vzilla-blog/a-blueprint-for-learning-new-tech/feed 0
        DBSched – Centralised Database Backup https://vzilla.co.uk/vzilla-blog/dbsched-centralised-database-backup https://vzilla.co.uk/vzilla-blog/dbsched-centralised-database-backup#respond Wed, 05 Aug 2026 09:54:17 +0000 https://vzilla.co.uk/?p=3666 Internally at Veeam we have been working on the Application Backup Repository for a few months, and since hearing about this I wanted a way to be able to demonstrate the ability to send my database backups to these NFS exports. I could not find an existing tool out there that would enable me to hit all the different database types. So in the world of AI accelerating our ideas to reality I got to work on a demo tool, simply called “DBSched”

        You can find out what the Veeam Application Backup Repository is here below.

        As I said I wanted a demo app that would enable a few things.

        • Multi-Database Support
        • Scheduling
        • Web Based UI
        • Some sort of connection testing
        • Visual Monitoring and Observability
        • Container based, run anywhere

        I have seen a rise in the amount of people running databases and other data services in Docker Containers, not going all in on Kubernetes and simply using a Docker container to run their data services, I have also seen a strong growth area around DBaaS, including the public cloud but also the offerings from Supabase, PlanetScale, MongoDB Atlas to name a few.

        I have said about these platforms and the potential for backups to be stored within the Veeam Application Backup Repository, so combining the two I went to work and created this demo tool.

        image 23

        Deployment

        It is deployed as 2 Docker containers using Docker Compose, it has the following architecture.

        • Backend: Golang with Chi router, GORM, and SQLite
        • Frontend: Next.js 16 with React 19, Material UI, and TypeScript
        • Database: SQLite for metadata storage
        • Scheduler: Cron-based job scheduling
        image 35

        Configuration

        When up and running you navigate a browser to http://localhost:3000

        The first thing to do is to create your sources.

        image 25

        You then select your source type, provide a name for the connection and fill int he details for host, port, database name, username and password. You will also choose the NFS Backup Target (this would be one of those NFS Exports, backed by the Veeam Application Backup Repository)

        image 26

        Once added you can use the backup now button to take a backup out of schedule as a point in time. If you wanted to you could then select the Schedules tab and start creating the cronjob schedules for each source.

        image 27

        When you click the create schedule you will see the following window

        image 28

        From the source drop down you can select the source you just added, you can see I have been running a lot of tests here against many different databases.

        image 29

        On my machine you can see all the Application Backup Repositories I have added.

        image 30

        This is where for example your PGdump files etc will land and then be protected by the Veeam schedule that we setup during the ABR being added.

        Restore

        Generally speaking the PGDump files that live on that export location can be recovered natively within Postgres providing they are within the retention that is being stored there, if something happens to these or the retention has aged out then you might want to recover them back. This tool is focused on restoring the dump files back to the database.

        image 31

        You can select that restore button and perform the restore, you select the specific restore point (dump file) that you want to restore back to the database. Choose the source and target database, in the below image we took it from the same source and target. \

        image 32

        As supabase is our example here, we know that this is mostly postgres under the hood so I wanted a way to also be able to restore this to other locations where possible. So I made it possible to restore this backup file to say a postgres instance running in a local docker container.

        image 33

        You will hopefully see that many of the other options are greyed out as they are not compatible.

        image 34

        To note again this is a demo application I created to show how we could use the Veeam Application Backup Repository as a place to manage additional retention of those dump files rather than relying on them just landing on an NFS export or even worse a local disk of the database server.

        I was not able to find a commercial equivalent or an open source project that provided the same breadth of database and data service support but open to any feedback on that. I have not released the code but you will have to let me know if this is something that people would want to see and use in their home labs.

        For the record, it is not a Veeam tool I am just leveraging the Veeam ABR to store those exports from the database and then using that to capture snapshots and then backup copies of those exports. In theory though this will work with any NFS export location.

        ]]>
        https://vzilla.co.uk/vzilla-blog/dbsched-centralised-database-backup/feed 0
        Veeam Application Backup Repository – Proxmox LXC https://vzilla.co.uk/vzilla-blog/veeam-application-backup-repository-proxmox-lxc https://vzilla.co.uk/vzilla-blog/veeam-application-backup-repository-proxmox-lxc#respond Tue, 04 Aug 2026 09:30:06 +0000 https://vzilla.co.uk/?p=3656 A common request I have seen within the community is ”Can Veeam protect LXC Containers in Proxmox?” and whilst this is being researched, I wanted to share a workaround that I have been using in my homelab.

        I posted about the Application Backup Repository

        We start by creating a fresh new Application Backup Repository for our LXC backups within Veeam Backup & Replication.

        image 15

        Now we head over to our Proxmox environment to add the new NFS Export. Select the datacenter and then Storage

        image 16

        Click add and select NFS

        image 17

        Give it a name,

        The server will be your ABR Server

        The Export will be the path

        Select VZdump backup file and unselect anything else,

        Also make sure you select NFS Version

        image 18

        We will now configure Proxmox backup to send to our Application Backup Repository. Firstly select your LXC container and choose Backup.

        image 19

        Select the storage to be our newly added NFS Export

        image 20

        This can then be scheduled via Proxmox backup and you will see the backups that you have created in the following screen.

        image 21

        Amazingly, this dump will be found in our export location. This will then be captured by the snapshot schedule we created when adding the Application Backup Repository in Veeam Backup & Replication. You can then use the Backup Copy feature to send this to another location.

        image 22

        I have tested recovery as well; to recover you will need to shut down your container and then restore the contents.

        ]]>
        https://vzilla.co.uk/vzilla-blog/veeam-application-backup-repository-proxmox-lxc/feed 0
        The Veeam Application Backup Repository – 13.1 https://vzilla.co.uk/vzilla-blog/the-veeam-application-backup-repository-13-1 https://vzilla.co.uk/vzilla-blog/the-veeam-application-backup-repository-13-1#respond Mon, 03 Aug 2026 09:25:12 +0000 https://vzilla.co.uk/?p=3639 Last week the general availability of the Veeam Data Platform 13.1 went live and there have been some great blog posts highlighting the big ticket items that came in this minor release.

        Brad put together this post on the themes around 13.1 and targeted areas to continue to enable our customers to protect their ever changing estates.

        https://www.veeam.com/blog/veeam-data-platform-v13-1-identity-cyber-ai.html

        Anthony got into some of this but has a focus around the hypervisor support and continued coverage we continue to strive to help our customers protect their virtual machines.

        image

        I wanted to take one of those features that I actually believe could be a pretty big deal for those looking after the data across a business.. Anthony mentioned the Application Backup Repository in his post,

        Application Backup Repository, which takes the Veeam Infrastructure Appliance running in Hardened Repository mode and turns local storage into a pool of virtual volumes, each one exposed as its own NFS target. Applications write to it directly with no awareness of Veeam underneath, while Veeam handles snapshots, immutability and access control behind the scenes. Oracle RMAN Incremental Merge is the flagship use case, but the door is open to anything from IoT devices to standalone databases that can export or dump data to NFS.

        When we were first briefed on this feature, I was thinking of all the use cases that this could really help our customers. In this post I want to cover from the Veeam side, how do we get an Application Backup Repository setup and then touch on what I think could be a massive use case for this feature.

        Getting Started with the Application Backup Repository (ABR)

        To note, most of the screenshots I share are from a beta / technical preview and not the GA code so might differ slightly but the standard wizard driven approach won’t be far from the reality in the GA code. As Anthony states this is an extenstion and use case that leverages the Veeam Infrastructure Appliance, this is a packaged up ISO or OVA that enables you to simply deploy to your environment and then add to your overall Veeam Backup & Replication environment.

        What is the Application Backup Repository?

        • A new repository type in VBR – ’Smart’ NFS Share:
        • If you export data to it, it is protected.
        • Veeam Schedules Snapshots and Backup Copy
        • Instant Recovery & Rollback: Full snapshot revert or Granular recovery

        Why?

        Veeam have been great with bringing out Enterprise Application plugins and providing application consistency and bridging the gap between application and database owners with making sure that backup admins have a grasp on what is being protected vs App owners going rogue and just storing large backup files where they wish, sometimes not storing in great places… we all saw the agentic situation that deleted the database and its backups… dont store backups on the same machine… bad idea!

        This feature provides a catch all for those applications where there is not yet the enterprise application integration with Veeam. It was also the basis of large database incrementals for Oracle. But the oppurtunity here is the platforms that are not natively supported by Veeam yet today as well. Think about the databases running on a docker host in a container, Database as a Service offerings like Supabase, PlanetScale, MongoDB and this list is getting longer and longer as well as anything that exports a configuration such as a switch or other network devices.

        How?

        The quick how is, deployed as a Veeam Infrastructure Appliance that enables an NFS export. •Applications write native exports/dumps directly to the NFS share on their own schedule (cron, DBaaS export, Proxmox LXC backup, network device config export, etc.)​

        Veeam then takes scheduled snapshots, which can then be backed up to other storage types for longer term retentions and offsite copies.

        ​Restore wise, this offers the ability to restore from snapshot, ‘Revert Snapshot’ (full rollback of the NFS export) or ‘Export Snapshot’ (mount as temp read-only path for granular restore)

        ​This VIA leverages the immutability flag meaning that we have an immutable copy stored as well as being able to backup copy to a secondary location.

        We should consider one application per repository as the snapshot revert will apply to the entire dataset.

        To get started we are going to deploy our new Veeam Infrastructure Appliance with our required disk layout to store our backups, in my case I am doing this on a VM but this could be a physical storage server as well. When we have that new Veeam server added to our managed servers we can go and create our new Application Backup Repository. Give it an appropriate name and click next.

        image 1

        Because we have added the VIA as a managed server we will see this in the drop down, select this but if you have not yet added the server you could select “Add New” and run through that process.

        image 2

        We then need to define our repository, we will grant permissions for the NFS share.

        image 3

        We can then define our snapshot schedule.

        image 4

        And now on your client, whatever it is you want to send to the repository you would mount this NFS export and start sending those exports or dumps to it. Within Veeam Backup & Replication you will see the snapshots looking something like this based on the schedule you set.

        image 5

        We should also talk about recovery options, this is where my images might differ from the GA but the same concept will be available. When you right click on your snapshots in the above screen you will have a recovery option.

        image 6

        When the “Instant Recovery” is clicked a  new window appears and you can choose your available restore point.

        image 7

        There are two restore modes available,

        Revert the snapshot is going to rip and replace the contents of the NFS Export

        Export snapshot via a temporary path is going to enable you to mount the snapshot as a new export so you can go and pick what you want and possibly copy and paste.

        image 8

         If you chose the revert snapshot option then you will need to unmount and remount the nfs export.

        image 9

        We can then configure backup copy options to send our backups to additional storage types, offsite locations and different retentions. In a simple way you could give this export to any of your app owners and this is where they can start dumping their data.

        “Anything” Backup Repository…

        Now you have seen how simple it is to create, there are so many exciting and useful scenarios we could use this for, the first idea I had was a database that lives on a platform without Veeam native support, maybe this is a containerised version of MySQL.

        image 10

        The concept of this repository is that you can send anything that Veeam doesn’t support natively into this and be sure that backup admins have visibility of these backups.

        This is focused on MySQL but in theory any database living anywhere could be an option here.

        image 11

        I have been working on a small demo tool that allows me to schedule these database dumps from many different database sources including many of the logos you see above, you could think about this as a centralised database export scheduler.

        image 14

        Maybe worth another post down the line on this as well as some of the other use cases I have been thinking about like Proxmox LXC containers exports to this NFS export.

        Many ideas, the really exciting part of this feature for me is finding what the community will use this for.

        ]]>
        https://vzilla.co.uk/vzilla-blog/the-veeam-application-backup-repository-13-1/feed 0
        Learning The Data Engineering Foundations https://vzilla.co.uk/vzilla-blog/learning-the-data-engineering-foundations https://vzilla.co.uk/vzilla-blog/learning-the-data-engineering-foundations#respond Thu, 28 May 2026 13:46:13 +0000 https://vzilla.co.uk/?p=3625 Yesterday we wrote down a plan.

        Today we started the plan.

        We started this course linked above, it had a bit of everything I was looking for the foundations. We are around 2 hours in and I decided that might be a good time to look back over the notes and look at the additional areas that have been mentioned already that we need to get into. I am not going to reinvent the wheel here, If you are interested then get into this first. I would say you can take the first hour and learn something.

        The next hour was more talking about technologies that would be needed with some overview, In the above hour you will hear many tooling options as well so I will start there. My plan here is to try and find some useful, focused content that I can watch through to learn more of the fundamentals of these tools.

        PSA: The Apache Software Foundation (ASF)

        Many of the tools listed below are fronted with “Apache”, I had obviously heard of many of these Apache titled bits of software but I was maybe a little naive to the background. The Apache Software Foundation (ASF) actually manages over 350 open-source projects spanning almost every corner of enterprise technology, including web servers, operating systems, development tools, and database management systems.

        It All Started with a Web Server, I am pretty confident that anyone that has read this far has used the Apache Web Server before?

        The Broader Apache Universe

        To give you an idea of how diverse the community is, here are some major non-data engineering projects you might run into:

        • Web & Application Servers: Along with the original HTTP Server, they manage Apache Tomcat, which is used globally to run Java-based web applications.
        • Databases & Storage: They host highly popular NoSQL databases like Apache Cassandra (originally built by Facebook to power their inbox search) and Apache CouchDB.
        • Build & Dev Tools: Tools that developers use every day to build their code, like Apache Maven and Apache Ant, are standard parts of the software development lifecycle.
        • Operating Systems: They even house Apache CloudStack, which is open-source software designed to deploy and manage large networks of virtual machines as a cloud computing platform.

        All of the above is out of scope for this learning journey, but in the reverse it reminded me of the Cloud Native Computing Foundation (CNCF) in a way.

        Lets get into the Apache Data Engineering Stack and surrounding technologies.

        Ingestion/Streaming (Apache Kafka)

        The highway that captures live data and moves it into the architecture.

        image 4

        Storage (Apache Iceberg, Delta Lake inside Cloud Storage (S3))

        The smart organising layer that formats the data safely on disk.

        image 6

        Compute/Processing (Apache Spark, Apache Flink)

        The heavy-duty engines that reach into storage to transform and clean the data.

        image 7

        Architectural Platforms (Snowflake, DataBricks, Microsoft Fabric)

        The overarching cloud environments where all of this compute and storage lives.

        image 8

        Orchestration (Apache Airflow)

        The conductor that schedules when the ingestion, storage, and compute actions trigger.

        image 9

        Languages/Interfaces (Python, SQL, Jupyter).

        The tools you use to write the logic and talk to every single layer above.

        image 10

        Other Tools (Containers, Virtualisation, Cloud)

        Docker was mentioned but I have covered this in the #90DaysOfDevOps series, so going to drop that link below.

        https://github.com/MichaelCade/90DaysOfDevOps/blob/main/2022/Days/day42.md

        image 3

        My goal now instead of using Gemini to craft these somewhat interesting images above, is to find where people much smarter than me have already digested a lot of these tools and areas so I can then be smarter myself when I go back to the crash course.
        Also side note… that initial crash course is not the full course free on youtube, its an almost 4 hour teaser to a 17 hour paid for bootcamp.. Jury is out if thats the way to go.

        ]]>
        https://vzilla.co.uk/vzilla-blog/learning-the-data-engineering-foundations/feed 0