home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

Saving the running configuration

How to save the running configuration and specify locations for the configuration file.

You can save the configuration to a file for your own use; for example copying to another device, by using the save <filename> command in configuration mode.

vyatta@R1# save testconfig
Saving configuration to '/config/testconfig'...
Done
vyatta@R1#

The running configuration is saved automatically when you enter commit or commit-confirm. Entering the save command without a filename has no effect.

vyatta@R1# save
Saving configuration to '/config/config.boot'...
'commit' saves configuration. This command has no effect
vyatta@R1#

You can also save a configuration file to a location path other than the standard configuration directory by specifying a different path. You can save the file to a hard drive, flash memory, or USB device.

Note that the save command writes only committed changes. If you try to save uncommitted changes, the system warns you that it is saving only the committed changes.

CAUTION: If your login user is not a member of the login user group "secrets" and you save a configuration either through the REST API or use the save command, the encrypted passwords in the configuration file are replaced with the ******** placeholder. If you load this configuration, the replaced password fields trigger validation errors because the placeholder does not match the format for an encrypted password. Do not commit this configuration. If you ignore the error message and perform a commit with this invalid configuration, the passwords are deleted.

Specifying locations for the configuration file shows how to specify the syntax for files from different file locations when you save files in configuration mode.

Table 1. Specifying locations for the configuration file
Location Specification

An absolute path

Use standard UNIX file specification.

A relative path

Specify the path name relative to the location configured for the config-directory parameter of the rtrmgr configuration node.

TFTP server

Use the following syntax for file-name:

tftp://ip-address /config-file

where ip-address is the IP address of the TFTP server, and config-file is the configuration file, including the path relative to the TFTP root directory.

FTP server

Use the following syntax for file-name:

ftp://ip-address /config-file

where ip-address is the IP address of the FTP server, and config-file is the configuration file, including the path.

If you use FTP, you are prompted for a user name and password.

HTTP server

Use the following syntax for file-name:

http://ip-address /config-file

where ip-address is the IP address of the HTTP server, and config-file is the configuration file, including the path.