Sunday, December 3, 2017

Persistent configuration changes in TinyCore Linux | Open-Source Routing and Network Simulation

Persistence in TinyCore

TinyCore Linux runs in RAM so all changes made while the system is
running will be lost after a system reboot unless the user takes action
to back up the configuration changes.




The TinyCore Linux filetool.sh script provides the backup function that supports persistence. The script backs up files created in the /opt and $HOME directories. The script will also back up directories containing configuration files associated with networking software like Quagga if those directories are listed in the /opt/.filetool.lst file. Network configuration changes made using Linux commands like the ip command cannot be saved. But, we can add these commands to the /opt/bootlocal.sh shell script, which runs at startup.




Once you have created the network configurations you wish to save, by editing the /opt/bootlocal.sh script and/or saving the Quagga or Openvswitch config files, back up the configuration using the filetool.sh script as follows:


$ filetool.sh -b
 
When the system is running, you can restore the saved base configuration by running the command:


$ filetool.sh -r




Persistent configuration changes in TinyCore Linux | Open-Source Routing and Network Simulation

No comments: