Onyx – backup config

One of the incredibly versatile features of Onyx is its ability to schedule tasks similar to cron.

The following command can be used to enable automatic backup/export of the switch config to an sftp/scp server every 24 hours:

conf t
job 1 command 1 configuration\ upload\ vrf\ mgmt\ timestamp\ active\ scp://username:password@backupserver.contoso.dev/ftproot/switch/switchname
schedule periodic interval 24h0m0s
enable
exit

We can enhance this further through configuration of the auto-upload feature. This means that when “wr mem” is used to save the running config to the switches boot disk, it will export the switch config to an sftp/scp server as well:

configuration auto-upload remote-url scp://username:password@backupserver.contoso.dev/ftproot/switch/switchname