Follow

These commands allow users to manage snapshots used by InfiniSafe.


infinisafe.snapshot.attach

ROLE: Admin

Description

Attach a snapshot to the standby DDE node.

Syntaxinfinisafe.snapshot.attach snapid=SNAPSHOT
Argumentssnapid

InfiniSafe snapshot ID.

Exampleinfinisafe.snapshot.attach snapid=53834

Attach operation will temporary disable failover feature until the attached snapshot is detached.
Are you sure? [y/n]
y
Attaching snapshot 53834 to node 3. To monitor the progress run command "infiniguard.task.query"



infinisafe.snapshot.detach

ROLE: Admin

Description

Detach the snapshot from the standby DDE node.

Syntaxinfinisafe.snapshot.detach
Exampleinfinisafe.snapshot.detach

Snapshot detach operation will reset DDE node 3 to the Standby role.
Are you sure? [y/n]
y
Detaching snpashot from DDE node 3. To monitor the progress run command "infiniguard.task.query"



infinisafe.snapshot.lock

ROLE: Admin

Description

Lock an unlocked snapshot.

Syntaxinfinisafe.snapshot.lock snapid=SNAPSHOT [expiration=EXPIRATION]
Arguments

snapid

InfiniSafe snapshot ID.

expiration

A timestamp, e.g: 2023-04-13, '2023-04-13 18:30:12'. The date and time when this snapshot will expire and be deleted. Expiration must be in the future.

Exampleinfinisafe.snapshot.lock snapid=118867 expiration=2022-08-16

Snapshot "118867" is now locked and will expire at 2022-08-16 00:00:00



infinisafe.snapshot.delete

ROLE: All Roles

Description

Delete a snapshot.

Syntaxinfinisafe.snapshot.delete snapid=SNAPSHOT
Argumentssnapid

InfiniSafe snapshot ID.

Exampleinfinisafe.snapshot.delete snapid=112200

Snapshot will be deleted.
Are you sure? [y/n]
y
Snapshot "112200" deleted



infinisafe.snapshot.recover

ROLE: Admin

Description

Recover an App from a snapshot.

Syntaxinfinisafe.snapshot.recover snapid=SNAPSHOT
Argumentssnapid

InfiniSafe snapshot ID.

Exampleinfinisafe.snapshot.recover snapid=112200

You are about to restore DDE App A to 03/04/2022 19:01:50. During snapshot recovery the DDE will shutdown. It is recommended to stop all backups before proceeding. The source snapshot will be immutable through the duration. A snapshot will be taken before this operation.
Are you sure? [y/n]
Recover from snapshot 112200. To monitor the progress run command "infiniguard.task.query"



infinisafe.snapshot.setlabel

ROLE: All Roles

Description

Assign a label to a snapshot.

Syntaxinfinisafe.snapshot.setlabel snapid=SNAPSHOT label=LABEL
Arguments

snapid

InfiniSafe snapshot ID.

label

A maximum of 100 characters, numbers, spaces, and the symbols: "^&'@()[]$=!-#{}%.+~_" (excluding quotation marks). Leading and trailing whitespace characters are stripped.
An empty label "" removes an existing label.

Exampleinfinisafe.snapshot.setlabel snapid=53834 label="Before virus"

Snapshot "53834" updated



infinisafe.snapshot.create

ROLE: All Roles

Description

Create a snapshot.

Syntaxinfinisafe.snapshot.create dde=DDEACTIVEAPP [label=LABEL] [retention=RETENTION] [immutable={YES|NO|Y|N}]
Arguments



dde

DDE app ID. Possible values are a, b.

label

A maximum of 100 characters, numbers, spaces, and the symbols: "^&'@()[]$=!-#{}%.+~_" (excluding quotation marks). Leading and trailing whitespace characters are stripped.

retention

An integer between 4 and 14 (inclusive). The number of days the snapshot will be retained before it is deleted.
The default is 7 days.

immutable

Yes or no.
The default is 'not immutable'.

Exampleinfinisafe.snapshot.create dde=b label="For future use"

Snapshot "53834" created



infinisafe.snapshot.query

ROLE: All Roles

Description

List the snapshots.

Syntaxinfinisafe.snapshot.query [ddeapp=DDEACTIVEAPP] [snapid=SNAPSHOT] [origin=ORIGINATEDBY] [lock_state=LOCKSTATE] [label=LABEL] [created_from=TIMESTAMP] [created_to=TIMESTAMP] [expiration_from=TIMESTAMP] [expiration_to=TIMESTAMP]
Arguments








ddeapp

DDE app ID. Possible values are a, b.

snapid

InfiniSafe snapshot ID.

origin

System, Manual, or Recover.

lock_state

LOCKED, UNLOCKED, or EXPIRED.

label

A maximum of 100 characters, numbers, spaces, and the symbols: "^&'@()[]$=!-#{}%.+~_" (excluding quotation marks). Leading and trailing whitespace characters are stripped.

created_from

A timestamp, e.g: 2023-04-13, '2023-04-13 18:30:12'.

created_to

A timestamp, e.g: 2023-04-13, '2023-04-13 18:30:12'.

expiration_from

A timestamp, e.g: 2023-04-13, '2023-04-13 18:30:12'.

expiration_to

A timestamp, e.g: 2023-04-13, '2023-04-13 18:30:12'.

Exampleinfinisafe.snapshot.query ddeapp=b

ID     DDE APP  CREATED              LOCK STATE  EXPIRATION           ORIGINATED LABEL
53711  b        2022-05-15 11:31:10  UNLOCKED    2022-05-22 11:31:10  Manual     -
53834  b        2022-05-18 10:32:24  UNLOCKED    2022-05-25 10:32:24  Manual     For future use

Was this article helpful?
0 out of 0 found this helpful

0 out of 0 found this helpful

Last edited: 2022-08-06 08:36:13 UTC

Comments