Oxidized is a tool used for network device configuration backup and it is available on GitHub. In this tutorial, we will go through the steps to install Oxidized on Alpine Linux.
The first step is to install the required dependencies such as Git, Ruby, Ruby-dev, and OpenSSL.
apk add git ruby ruby-dev openssl-dev build-base
We will now clone the Oxidized repository using Git, navigate to the cloned directory, and install Oxidized.
git clone https://github.com/ytti/oxidized.git
cd oxidized
gem install bundler
bundle install --path .vendor
Once Oxidized is installed, we need to configure it. Oxidized stores the configuration file in /etc/oxidized/config. In this step, we will create a new configuration file.
mv /etc/oxidized/config /etc/oxidized/config.orig
touch /etc/oxidized/config
nano /etc/oxidized/config
Here is an example configuration file:
---
username: admin
password: password
models:
- cisco
- juniper
sources:
router1:
type: cisco
ip: 192.0.2.1
username: user
password: pass
output:
file:
directory: /var/lib/oxidized/configs
format: "%h.%y%m%d.%H%M%S"
In the above configuration file, we have configured Oxidized to backup configuration files for Cisco and Juniper devices. We also have configured the credentials for the router1 device and where the backup files will be stored.
To start Oxidized, run the following command:
oxidized
By default, Oxidized will run in the foreground, and you can use Ctrl+C
to stop it.
In this tutorial, we have gone through the steps to install Oxidized on Alpine Linux. We also have created a new configuration file and started Oxidized.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!