Skip to main content
mkdb extend adds time to a container’s TTL (time to live), pushing back the expiration date and preventing automatic cleanup. Use it when you need to keep a database running longer than its original TTL allows — for example, if you are in the middle of a longer development session or debugging an issue that will take more time than expected.

Flags

string
Name of the container to extend. When provided, mkdb skips the interactive selection menu.
integer
default:"1"
Number of hours to add to the container’s current expiration time. Defaults to 1. If the container is already expired, mkdb extends from the current time rather than the original expiration date.

Examples

Interactive mode — extend by 1 hour:
Non-interactive mode — extend a named container by 1 hour:
Extend by a custom number of hours:
For more about how TTL works and how to set a longer initial TTL at creation time, see TTL configuration.