Library Table of Contents Index Previous Next Comments

Filer configuration backup and cloning

About filer configuration backup and cloning  Top

Filer configuration backup and cloning is performed using the config command. The configuration backup operation stores the filer's configuration information in a single file with a name you specify. The configuration backup file enables you to restore the filer configuration in case of disasters or emergencies. Configuration cloning enables you to clone the configuration of an existing filer to a new filer.

Backing up a filer configuration  Top

When you use the config command to back up a filer configuration, the filer configuration is saved in a single file with a file name that you specify. By default, backup configuration files are created in the /etc/configs directory.

To back up a filer configuration, complete the following step.

Step

Action

1

Enter the following command:

config dump [-f] [-v] config_file

-f forces the new file to override an existing backup.

-v causes Data ONTAP to also back up a volume-specific configuration.

config_file is the name or the path and name of the backup file you are creating.

Example 1

The following is an example of the config dump command using the default directory to back up a filer-specific configuration to the file /etc/configs/08_02_2001.

config dump 08_02_2001
Example 2

The following is an example of the config dump command with a directory that you specify.

config dump /home/users/08_02_2001

Cloning a filer configuration  Top

To clone the configuration of one filer to another, complete the following step.

Step

Action

1

Enter the following command:

config clone filer username:password

filer is the name of the remote filer from which you want to clone the configuration.

username is the remote filer user name.

password is the remote user password.

Example

The following is an example of the config clone command cloning the tpubs-dot configuration to the filer toaster.

toaster> config clone tpubs-dot root:hello

About restoring a filer configuration  Top

You can restore a filer configuration using the backup configuration files you created with the config dump command.

Restoring a filer configuration  Top

To restore filer configuration information from a backup configuration file, complete the following steps.

Step

Action

1

Enter the following command:

config restore [-v] config_file

-v enables you to restore volume-specific configuration files, as well as filer specific configuration files.

Example

The following is an example of the config restore command restoring the backup configuration file from the default /etc/configs directory.

config restore 08_02_2001
2

Reboot the filer to run commands in the /etc/rc file.

Comparing filer configurations and backup configuration files  Top

To compare a filer's current configuration with a backup configuration file, or to compare differences between two backup configuration files, complete the following step.

Step

Action

1

Enter the following command:

config diff [-o output_file] {config_file1} 
{config_file2}

-o is the option you use to create the output file.

output_file is the name of the file containing the differences.

config_file1 is the name of the first file you want to compare.

config_file2 is the name of the second file you want to compare.

Example 1

The following example compares the filer's current configuration with the configuration information in the backup file.

config diff 11_15_2001
Example 2

The following example compares the configuration information in two backup files.

config diff 11_05_2001 11_15_2001

Library Table of Contents Index Previous Next Comments