Backup session cleanup and retention management.

Methods

(inner) autoCleanupIfEnabled(cwd, config) → {Object|null}

Parameters:
NameTypeDescription
cwdstring
configObject
Returns:
Type: 
Object | null

(inner) cleanupOldSessions(cwd, optionsopt) → {Object}

Removes sessions exceeding retention limits

Parameters:
NameTypeAttributesDescription
cwdstring
optionsObject<optional>
Returns:
Type: 
Object

(inner) getCleanupPreview(cwd, optionsopt) → {Object}

Returns cleanup preview without executing

Parameters:
NameTypeAttributesDescription
cwdstring
optionsObject<optional>
Returns:
Type: 
Object

(inner) getSessionAge(sessionId) → {number}

Returns session age in days

Parameters:
NameTypeDescription
sessionIdstring
Returns:
Type: 
number

(inner) selectSessionsForCleanup(sessions, config) → {Object}

Parameters:
NameTypeDescription
sessionsArray.<Object>
configObject
Returns:
Type: 
Object