Backup session cleanup and retention management.
- Source
Methods
(inner) autoCleanupIfEnabled(cwd, config) → {Object|null}
Parameters:
| Name | Type | Description |
|---|---|---|
cwd | string | |
config | Object |
- Source
Returns:
- Type:
- Object |
null
(inner) cleanupOldSessions(cwd, optionsopt) → {Object}
Removes sessions exceeding retention limits
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
cwd | string | ||
options | Object | <optional> |
- Source
Returns:
- Type:
- Object
(inner) getCleanupPreview(cwd, optionsopt) → {Object}
Returns cleanup preview without executing
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
cwd | string | ||
options | Object | <optional> |
- Source
Returns:
- Type:
- Object
(inner) getSessionAge(sessionId) → {number}
Returns session age in days
Parameters:
| Name | Type | Description |
|---|---|---|
sessionId | string |
- Source
Returns:
- Type:
- number
(inner) selectSessionsForCleanup(sessions, config) → {Object}
Parameters:
| Name | Type | Description |
|---|---|---|
sessions | Array.<Object> | |
config | Object |
- Source
Returns:
- Type:
- Object