Print Download PDF Send Feedback

Previous

Next

Snapshot Management

A snapshot is a backup of the system settings and products. It includes:

A snapshot is very large. A snapshot includes the entire root partition and some of the /var/log partition and other important files. For this reason, snapshots cannot be scheduled the same way that Backups can. Backup and Restore is the preferred method of recovery.

Notes:

Snapshot options:

Important - See sk98068: Gaia Limitations after Snapshot Recovery.

Best Practice for creating snapshots:

It is not recommended to use snapshots as a way of regularly backing up your system. System Backup is the preferred method. Schedule system backups on a regular basis, daily or weekly, to preserve the Gaia OS configuration and firewall database.

Snapshot Prerequisites

Before you create a snapshot image, make sure the appliance or storage destination meets these prerequisites:

See sk98068: Gaia Limitations after Snapshot Recovery.

Working with Snapshot Management - Gaia Portal

Before you create a snapshot image, make sure the appliance or storage destination meets the prerequisites.

To create a snapshot:

Step

Description

1

In the navigation tree, click Maintenance > Snapshot Management.

2

Click New.

The New Image window opens.

3

In the Name field, enter a name for the image.

Optional: In the Description field, enter a description for the image.

4

Click OK.

To restore a snapshot:

Step

Description

1

In the navigation tree, click Maintenance > Image Management.

2

Select a snapshot.

3

Click Revert.

The Revert window opens.

Note - Pay close attention to the warnings about overwriting settings, the credentials, and the reboot and the image details.

4

Click OK.

To delete a snapshot:

Step

Description

1

In the navigation tree, click Maintenance > Snapshot Management.

2

Select a snapshot.

3

Click Delete.

The Delete Image window opens.

4

Click OK.

To export a snapshot:

Step

Description

1

In the navigation tree, click Maintenance > Snapshot Management.

2

Select a snapshot.

3

Check the snapshot size.

4

Make sure that there is enough free disk space in the /var/log/ partition:

4A

Connect to the command line on Gaia.

4B

Log in to Expert mode.

4C

Run:

[Expert@HostName]# df -kh | egrep "Mounted|/var/log"

Check the value in the Avail column.

5

In Gaia Portal, select a snapshot.

6

Click Export.

The Export Image window opens.

7

Click Start Export.

Important - You must not rename the exported image. If you rename a snapshot image, it is not possible to revert to it.

To import a snapshot:

To use the snapshot on another appliance, it has to be the same type of appliance you used to export the image.

Step

Description

1

In the navigation tree, click Maintenance > Snapshot Management.

2

Click Import.

The Import Image window opens.

3

Click Browse to select the snapshot file for upload.

4

Click Upload.

5

Click OK.

Working with Snapshot Management - Gaia Clish

Before you create a snapshot image, make sure the appliance or storage destination meets the prerequisites.

Description

Manage system images (snapshots).

Syntax

Important - After you add, configure, or delete features, run the save config command to save the settings permanently.

Parameters

Parameter

Description

snapshot <Name of Snapshot>

Configures the name of the snapshot image.

You must enter a string that does not contain spaces.

desc "<Description of Snapshot>"

Configures the description of the snapshot image.

You must enclose the text in double quotes, or enter the string that does not contain spaces.

export <Name of Snapshot>

Selects the snapshot image you export by the specified name.

You must enter a string that does not contain spaces.

import <Name of Snapshot>

Selects the snapshot image you import by the specified name.

You must enter a string that does not contain spaces.

path <Path>

Configures the path to the specified snapshot image file (for example: /var/log/).

name <Name of Exported Snapshot>

Configures the name, under which the exported snapshot image file is stored on the hard disk.

You must enter a string that does not contain spaces.

name <Name of Imported Snapshot>

Configures the name, under which the imported snapshot image is stored on Gaia.

You must enter a string that does not contain spaces.

Example

gaia> add snapshot snap1 desc first_image_after_installation

 

gaia> set snapshot export snap1 path /var/log/ name first_image_after_installation

Notes: