mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2025-09-06 10:30:39 +00:00
Fix #2: support pruning and forget via snapshot policies
This commit is contained in:
12
src/types.ts
12
src/types.ts
@@ -62,9 +62,21 @@ export type Backend =
|
||||
|
||||
export type Backends = { [name: string]: Backend }
|
||||
|
||||
export type ForgetPolicy = {
|
||||
last?: number,
|
||||
hourly?: number,
|
||||
daily?: number,
|
||||
weekly?: number,
|
||||
monthly?: number,
|
||||
yearly?: number,
|
||||
within?: string,
|
||||
tags?: string[],
|
||||
}
|
||||
|
||||
export type Location = {
|
||||
from: string
|
||||
to: string | string[]
|
||||
keep?: ForgetPolicy
|
||||
}
|
||||
|
||||
export type Locations = { [name: string]: Location }
|
||||
|
Reference in New Issue
Block a user