Skip Headers
Oracle® Secure Backup Reference
Release 10.1

Part Number B14236-03
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

rensnap

Purpose

Use the rensnap command to rename a snapshot.

See Also:

"Snapshot Commands" for related commands

Prerequisites

You must have the right to manage devices and change device state to use the rensnap command.

Syntax

rensnap::=

rensn•ap [ --nq ] [ --host/-h hostname ] [ --fs/-f filesystem-name ]
{ old-snapshot-name new-snapshot-name }...

Semantics

--nq

Does not display a confirmation message. If you do not specify this option, then the command displays a confirmation message. The message is described in "Command Execution in Interactive Mode".

--host/-h hostname

Specifies the name of the NDMP host machine where you want to rename the snapshot. If you do not specify a host name, then Oracle Secure Backup uses the value from the host variable.

--fs/-f filesystem-name

Specifies the name of the file system included in the snapshot. If you do not specify the --fs option, then the fs variable must be set.

old-snapshot-name ...

Specifies the name of an existing snapshot.

new-snapshot-name ...

Specifies a new name for old-snapshot-name.

Example

Example 2-113 renames snapshot lucy_snap to lucy.0.

Example 2-113 Renaming a Snapshot

ob> lssnap --long lucy_snap
File system /vol/vol0:
    Max snapshots:          255
    Reserved space:           44.8 GB
    % reserved space:       30
    Snapshot:               lucy_snap
        Of:                 /vol/vol0
        Taken at:           2005/03/28.20:52
        Used %:               0
        Total %:              0
        Busy:               no
        Dependency:         no
ob> rensnap --nq --host lucy --fs /vol/vol0 lucy_snap lucy.0
ob> lssnap
File system /vol/vol0:
Snapshot Of                Taken at      %Used  %Total Snapshot Name
/vol/vol0              2005/03/28.21:00     0      0   hourly.0
/vol/vol0              2005/03/28.20:52     0      0   lucy.0
/vol/vol0              2005/03/28.17:00     0      0   hourly.1
/vol/vol0              2005/03/28.13:00     0      0   hourly.2
/vol/vol0              2005/03/28.05:00     0      0   nightly.0
/vol/vol0              2005/03/28.01:00     0      0   hourly.3
/vol/vol0              2005/03/27.21:00     0      0   hourly.4
/vol/vol0              2005/03/27.17:00     0      0   hourly.5
/vol/vol0              2005/03/27.05:00     0      0   nightly.1
/vol/vol0              2004/08/21.11:30    22      7   myhost_snap