# Check if fdbbackup is running

**URL:** <https://forums.foundationdb.org/t/check-if-fdbbackup-is-running/4675>\
**Category:** Running FoundationDB\
**Tags:** operator\
**Created:** [October 29, 2024, 12:01pm UTC](https://forums.foundationdb.org/t/check-if-fdbbackup-is-running/4675 "2024-10-29T12:01:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hikouki-gumo](https://avatars.discourse-cdn.com/v4/letter/h/b3f665/32.png) [@hikouki-gumo](https://forums.foundationdb.org/u/hikouki-gumo)\
**Post date:** [October 29, 2024, 12:01pm UTC](https://forums.foundationdb.org/t/check-if-fdbbackup-is-running/4675/1 "2024-10-29T12:01:10Z")

</div>

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](https://apple.github.io/foundationdb/backups.html#start)

---

<div class="post-metadata">

**Author:** ![johscheuer](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@johscheuer](https://forums.foundationdb.org/u/johscheuer)\
**Post date:** [November 5, 2024, 11:24am UTC](https://forums.foundationdb.org/t/check-if-fdbbackup-is-running/4675/2 "2024-11-05T11:24:11Z")

</div>

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](https://github.com/FoundationDB/fdb-kubernetes-operator/blob/main/fdbclient/admin_client.go#L594-L620) which would be doing the conversion for you. Using fdbbackup with the status format is probably the simplest approach.
