Thursday, January 13, 2011

SPLAT : Snapshot and Revert

The SecurePlatform Image and configuration can be saved and reverted with the snapshot and revert commands. These commands can be run in Standard and Expert Modes, and can use a TFTP or SCP server to store snapshots (locally, if necessary).


  • snapshot and revert command syntax can be displayed using "-h" or the "--help" switch.
    Example:

    snapshot -h

    [-h] [-d] [[--tftp ServerIP Filename]|
    [--scp ServerIP Username Password Filename] |
    [--file Filename]]


    Where switch:

    -d (Shows debug messages)
    -h, --help (Shows this help information)
    -t, --tftp (Transfers backup package to TFTP server)
    -s, --scp (Transfers backup package to SCP server)
    -f, --file (Specifies local backup-package filename)




  • Using the snapshot command without any switch displays a list of choices.

    Procedure:

    1. In Standard mode, type snapshot.


    2. Choose one of the following:


    3. L Create new local Snapshot Image
      T Create new snapshot Image on TFTP server
      S Create new snapshot Image on SCP server
      R Remove local Snapshot Image
      Q Quit

    4. Select a choice. The following line appears:


    5. Creating the Snapshot Image. This can take up to 10 minutes...

    6. The new snapshot output file can be found at /var/CPsnapshot/snapshots, by typing the ls command in Expert Mode:
      Example:

      [Expert@cpmodule]#ls /var/CPsnapshot/snapshots



  • Using the revertcommand without any switch displays a list of choices.

    Procedure:

    1. Type revert to get the following display:


      L Revert to local Snapshot Image
      T Revert to Snapshot Image from TFTP
      S Revert to Snapshot Image from SCP
      R Remove local Snapshot Image
      Q Quit


    2. Type L



    3. Revert to:
      [1] new-snap.tgz
      [2] old-snap.tgz
      [Q] Quit


    4. Select from the following:


      Do you want to save snapshot image before revert?

      L Create new local Snapshot Image
      T Create new Snapshot Image on TFTP
      S Create new Snapshot Image on SCP server
      O Override current Snapshot Image (/var/CPsnapshot/snapshots/old-snap.tgz)
      R Remove local Snapshot Image
      Q Quit

Note:
After the revert process has finished, SecurePlatform reboots.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.