How to verify a fdb backup with specific tag is running?

Hi

I’m using fdbbackup in non continuous mode, backup
snapshot every hour. Backup consumes quite a lot CPU. I want to try continuous backup mode (fdbbackup start -z), to reduce CPU usages.

Fdbbackup is deployed as Job in K8s. As fdbbackup now continuous run, if I deploy Job again (e.x. when upgrade system), the command will fail.
The current running backup will be unaffected, but my new deploy Job status will be failed. To avoid that, I try to check whether a backup processe with specific tag is running, if already run, skip fbdbackup start.

My question:
How to check whether a backup process with specific tag is running?
One way is use fdbbackup status then parse the output message, but I think there’s other ways.

It’s not well documented (or maybe not documented at all) but try fdbbackup status --json for output that’s more machine-readable.

You can also check the status of the backup layer from fdbcli --exec "status json", which produces JSON-formatted status for the whole cluster.

1 Like

@swr Thank you, that’s what I’m looking for.

1 Like