# Maximum backup versions?

**URL:** https://forum.duplicati.com/t/maximum-backup-versions/1029
**Category:** Support
**Created:** [October 15, 2017, 7:29pm UTC](https://forum.duplicati.com/t/maximum-backup-versions/1029 "2017-10-15T19:29:48Z")
**Posts on this page:** 1
**Showing post:** 27

<div class="post-metadata">

### Author: ![kees-z](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kees-z/32/29_2.png) [@kees-z](https://forum.duplicati.com/u/kees-z)
#### Post date: [October 20, 2017, 11:26am UTC](https://forum.duplicati.com/t/maximum-backup-versions/1029/27 "2017-10-20T11:26:05Z")

</div>

`--keep-time`, `--keep-versions` and `--retention-policy` are part of the backup job configuration.  
They are defined in step 5 of the Add/Edit Backup wizard.  
`--keep-time` and `--keep-versions` can be supplied under “General Options”:

![image](https://forum.duplicati.com/uploads/default/original/1X/5c8aa1f1ff03a777d5da4d9425070194db005f2c.png)

`--retention-policy` is an advanced option.

The `--keep-time`, `--keep-versions` and `--retention-policy` options are applied after completion of each backup job. Compacting is started automatically when needed. You can set thresholds for compacting the advanced options `--small-file-max-count` and `--small-file-size`.

---

_[View the full topic](https://forum.duplicati.com/t/maximum-backup-versions/1029)._
