The mksnap command creates a new snapshot, based on an existing stream. The snapshot contains the same set of element versions that the existing stream contained at a particular point in time. The existing stream on which a snapshot is based might change, through promotes. But the contents of a snapshot never change. See Entity Names on page 6 for information on naming snapshots.You can implement a “changeable snapshot” facility using a dynamic stream. See Using the -t Option in the mkstream reference page.(required) Specify a name for the new snapshot. The name must begin with a non-digit other than dot (.), and must not include either a slash (/) or a backslash (\).Snapshot time. The snapshot will contain the versions that were in the stream at the specified time. If you specify a transaction number, the snapshot will include the versions that were in the stream at the time the transaction was completed.
• Time in <YYYY/MM/DD HH:MM:SS> format: e.g. 2001/08/07 20:27:15.
Note that you might need to use quotes in composing the argument following -t; the entire argument must be interpreted by the command shell as a single token.
• Time keyword: now
• You cannot specify a time that is before the creation of the existing stream, or after the current time.When using the –t option, take into account the possibility of a timewarp. The AC_SYNC environment variable (see AccuRev User Preferences on page 6) determines how a timewarp will be handled. See also section System Clock Synchronization on page 31 of the AccuRev Administrator’s Guide.Create a snapshot of the state of the gizmo stream on May 2nd, 2000 at 2:55pm, calling it gizmo_may2:
AccuRev, Inc. |
Phone: 781-861-8700 |
Fax: 781-861-8704 |
support@accurev.com |