Difference between revisions of "Save (command)"

From VyOS Wiki
Jump to: navigation, search
m (Added category)
(Added more information)
 
Line 1: Line 1:
The `save` command saves the current configuration to non-volatile storage.
+
The `save` command saves the current configuration to non-volatile storage. VyOS also supports saving and loading configuration remotely using SCP, FTP, or TFTP.
 +
 
 +
== Syntax ==
 +
 
 +
<pre>
 +
vyos@vyos# save [tab]
 +
Possible completions:
 +
  <Enter>      Save to system config file
 +
  <file>        Save to file on local machine
 +
  scp://<user>:<passwd>@<host>/<file> Save to file on remote machine
 +
  ftp://<user>:<passwd>@<host>/<file> Save to file on remote machine
 +
  tftp://<host>/<file>      Save to file on remote machine
 +
</pre>
 +
 
 +
== Examples ==
 +
 
 +
Saving a file to a TFTP server on the local network:
 +
 
 +
<pre>
 +
vyos@vyos# save tftp://192.168.0.100/vyos-test.config.boot
 +
Saving configuration to 'tftp://192.168.0.100/vyos-test.config.boot'...
 +
######################################################################## 100.0%
 +
Done
 +
</pre>
  
 
[[ Command tree ]]
 
[[ Command tree ]]
  
 
[[ Category:User_documentation ]]
 
[[ Category:User_documentation ]]

Latest revision as of 01:36, 29 March 2017

The `save` command saves the current configuration to non-volatile storage. VyOS also supports saving and loading configuration remotely using SCP, FTP, or TFTP.

Syntax

vyos@vyos# save [tab]
Possible completions:
  <Enter>       Save to system config file
  <file>        Save to file on local machine
  scp://<user>:<passwd>@<host>/<file> Save to file on remote machine
  ftp://<user>:<passwd>@<host>/<file> Save to file on remote machine
  tftp://<host>/<file>      Save to file on remote machine

Examples

Saving a file to a TFTP server on the local network:

vyos@vyos# save tftp://192.168.0.100/vyos-test.config.boot
Saving configuration to 'tftp://192.168.0.100/vyos-test.config.boot'...
######################################################################## 100.0%
Done

Command tree