Prune Snapshots

This is a NuoDB Manager command. See NuoDB Manager.

Description

Applies a snapshot retention policy that you specify to identify database snapshots that can be removed from an SSM's snapshot archive. A prune snapshots operation does not move or delete any snapshots. It is up to you to remove the identified snapshots. For additional information, see Freeing Storage Space Used by Old Snapshots.

Syntax

prune snapshots database database_name 
    [host host_name[:port]]
    [pid ssm_id]
    file path
    [maxStorage bytes]
    [maxAge duration]
    [timeout timeout_value]

Parameters

Useful Properties

pruneSnapshotsTimeout

See NuoDB Manager Properties.

Interactive Example

nuodb [domain] > prune snapshots
Database in which to prune snapshots: test
Snapshot storage manager host (optional): 
Snapshot storage manager process ID (optional): 
Path to file on snapshot storage manager where pruned albums will be written: /tmp/remove_these_albums
Maximum storage retained snapshots may consume (B/K/M/G) (optional): 1G
Maximum age of retained snapshots (ms/s/m/h/d/w) (optional): 
Timeout (ms/s/m/h/d/w) (optional): 

Scripting Example

The same prune snapshots command can be executed with --command as follows:

nuodbmgr --broker host --password password \
    --command "prune snapshots database test maxStorage 1G file /tmp/remove_these_albums"