Skip to content

Commit

Permalink
docs(cli): cache hard limits flags (kopia#3846)
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkArc committed May 7, 2024
1 parent 6f0e902 commit e5790e3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions site/content/docs/Advanced/Caching/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ $ kopia cache set --max-list-cache-duration=300s
Note the cache sizes are not hard limits: cache is swept periodically (every few minutes) to bring
the total usage below the defined limit by removing least-recently used cache items.

A hard limit can be set if required via the corresponding `limit` flag:
```
# set the maximum content cache size to 30GB
$ kopia cache set --content-cache-size-limit-mb=30000
# set the maximum metadata cache size to 20GB
$ kopia cache set --metadata-cache-size-limit-mb=20000
```

### Clearing Cache

Cache can be cleared on demand by `kopia cache clear` or by simply removing appropriate files. It is always safe to remove files from cache.
Expand Down

0 comments on commit e5790e3

Please sign in to comment.