Check if fdbbackup is running

Hi all,

I’m running fdbbackup in continuous mode (start -z). I deploy fdbbackup as a Kubernetes job and sometimes need to redeploy this job. Because there is already a backup in progress (continuous mode), the job will fail. Event it’s not affect backup, it makes my job status failed.

Avoid is possible, if I can check if there is any running backup job programmatically. Does fdbbackup tool support any cmd to check that?

Obviously, using fdbbackup status -t {tag_name} then parsed the message is possible but I want to avoid that.

Reference: Backup, Restore, and Replication for Disaster Recovery — FoundationDB OFF documentation

If you are using go, you could try to use the admin client from the operator repo: fdb-kubernetes-operator/fdbclient/admin_client.go at main · FoundationDB/fdb-kubernetes-operator · GitHub which would be doing the conversion for you. Using fdbbackup with the status format is probably the simplest approach.