# Backups hold configs with literal secrets (/docs/troubleshooting/backups-hold-secrets)

What turno doctor --security means by "<holding> backup<s> in <dir> hold configs with literal secrets (oldest <holdi...", and the fix.

This page is for when `turno doctor --security` reports the finding below: what it means and how to fix it.

## What you see [#what-you-see]

```text
  !  <holding> backup<s> in <dir> hold configs with literal secrets (oldest <holding>); backups are pruned after 30 days
     fix: turno undo --prune --older-than 1d
```

It is a warning; warnings do not change the exit code. Words in angle brackets stand for values from your machine.

## Why it happens [#why-it-happens]

Every write keeps a copy of the file it changes so `turno undo` can restore it. Those copies can hold the literal secrets that were in the files. Backups are pruned after 30 days, keeping the newest 10.

## Fix [#fix]

Run:

```sh
turno undo --prune --older-than 1d
```

`turno doctor --security --fix` does not run it for you, because it needs a decision or an answer from you.

Then run `turno doctor --security` again to see the row turn into `ok`.

The check lives in [`packages/turno/src/cli/security.ts`](https://github.com/wimo-dev/turno/blob/main/packages/turno/src/cli/security.ts).