lockLatestSnap

Description

With this function, you can lock a backup snapshot for a specific account.
A locked snapshot will never be cleared so it advised to set a TTL for the lock.

Parameters

Parameter name Type Description Possible values Example
account String Required
The account name.
  acct01
depth Integer
Specific backup to lock, relative to the latest snapshot.
If you don't pass this value the default is the newest backup(0).
  pass 2 to lock the 2nd newest backup.
ttl Integer
The lock days number.
If you don't pass this value the default is lock forever(0).
  pass 4 to lock this backup for 4 days.

Returns

Doesn't return any data.

Example