DataZen Documentation
DataZen User Guide

LIST SNAPSHOT

Overview

Lists available snapshots that match a name or name pattern (for example customers*). Use this command to inspect which snapshots exist before loading or deleting them.

  • SINCE — optionally limits the list to snapshots created or modified on or after the date/time or epoch value provided (DataZen functions such as #dateadd(#utcnow(), -30d) are supported).

Related commands: SAVE SNAPSHOT, LOAD SNAPSHOT, DELETE SNAPSHOT. See also Snapshots in the Development Guide.

Syntax

List available snapshots given a name pattern.

LIST SNAPSHOT '...'
    { SINCE '...' }
;

SINCE

A date/time or epoch value from which to list available snapshots

Example 1

-- Lists previously saved snapshots that start with customers
LIST SNAPSHOT 'customers*';

Example 2

-- Lists previously saved snapshots that start with customers 
-- that were created or modified within the last 30 days
LIST SNAPSHOT 'customers*'
    SINCE '#dateadd(#utcnow(), -30d)';