Class: Restore#

Describes a single restoration job to be executed immediately for a given snapshot.

REQUIRES: Backup Services

author Jean-Philippe Steinmetz info@acceleratxr.com

Hierarchy#

Index#

Constructors#

Properties#

Accessors#

Constructors#

constructor#

+ new Restore(other?: any): Restore

Overrides EntityBase.constructor

Defined in src/models/Restore.ts:56

Parameters:#

Name

Type

other?

any

Returns: Restore

Properties#

dateCreated#

dateCreated: Date = new Date()

Inherited from EntityBase.dateCreated

Defined in src/EntityBase.ts:18

The date and time that the object was created.


dateModified#

dateModified: Date = new Date()

Inherited from EntityBase.dateModified

Defined in src/EntityBase.ts:23

The date and time that the object was last modified.


drop#

drop: boolean = true

Defined in src/models/Restore.ts:30

Indicates whether or not all existing data should be dropped during the restoration process.


events#

events: string[] = []

Defined in src/models/Restore.ts:35

The list of event messages that occurred during the last job execution.


exclude#

exclude: string[] = [ “admin.*” ]

Defined in src/models/Restore.ts:40

A list of database/collection/table name patters to exclude during the restoration process.


include#

include: string[] = []

Defined in src/models/Restore.ts:46

A list of database/collection/table name patters to include during the restoration process. Only those items matching the provided list are restored. An empty set restores everything.


snapshot#

snapshot: string | Snapshot = “”

Defined in src/models/Restore.ts:51

The unique id or object data of the snapshot that will be restored.


status#

status: RestoreStatus = RestoreStatus.PENDING

Defined in src/models/Restore.ts:56

The current state of the restoration job.


uid#

uid: string = uuid.v4()

Inherited from EntityBase.uid

Defined in src/EntityBase.ts:13

The universally unique identifier of the object.


version#

version: number = 0

Inherited from EntityBase.version

Defined in src/EntityBase.ts:28

The optimistic locking version of the object.

Accessors#

ClassName#

Staticget ClassName(): string

Defined in src/models/Restore.ts:25

Returns: string