OviOS Linux version 2.20 Antares available now. Download link here or at Sourceforge.

OviOS Live

OviOS Linux Live is a method to use OviOS only running from a live CD without having to install.

OviOS Linux boots the live image writable in memory, allowing the system to be configured as if it was installed. The challenge here is to save the configuration in case of an intentional or unintentional reboot.

Saving and restoring the configuration in OviOS Linux live is very simple and straightforward.

1. Define an OS Backup Pool.

This is a storage pool that will contain a small volume called "osbackup". The system will store here system backups.
For example, if the pool is called "data"

ovios-shell> options system.backup.pool data
Note: If you want to reset this option, use setdef.
ovios-shell> options system.backup.pool setdef

2. Define files and / or directories to be backed up.

By default, sync-config (the tool used for backups) backs up the following system configuration files and directories:

/etc/passwd 
/etc/group 
/etc/shadow 
/etc/samba/
/etc/krb5.conf 
/etc/hosts
/etc/resolv.conf

/etc/nsswitch.conf  
/etc/security/ 
/etc/pam.d/system-auth
/etc/tgt/ 

/var/lib/samba/ 
/etc/sysconfig/ovios.conf

Usually, when using OviOS Live, at least the network files should be added to this list.

Add files by editing the ovios.conf file:

bash-4.3# vim /etc/sysconfig/ovios.conf

And add a list of files and directories to the "SYNC_FILES" option:

SYNC_FILES="/etc/sysconfig/ov-net/   /etc/ypserv.conf    /etc/yp.conf"

In this example we added the ov-net directory which contains the network configuration files, and the yp.conf and ypserv.conf files. You must use this format as in the example above.

3. Create a backup.

Run the sync-config tool with option bo or backup-only:

ovios-shell> sync-config backup-only
Found backup location to be /ovios/data/osbackup
Creating /ovios/data/osbackup/osbackup-2017-01-29_16-30-31.tar.gz ...
Created backup osbackup-2017-01-29_16-30-31.tar.gz
ovios-shell> 


4. Restore after a reboot.

After a reboot (or in any situation when the Admin needs to restore the config from a backup), make sure the OS system backup pool is imported.
You may need to disable the skip.import option and run zfs-admin start.

Drop to the bash shell, if at this point you are in the ovios-shell, and run the following commands:

ovios-shell> linuxcmd  
Dropping to the Linux bash shell...
bash-4.3# cd /
bash-4.3# tar xvf /ovios/data/osbackup/osbackup-2017-01-29_16-30-12.tar.gz


etc/sysconfig/ov-net/
etc/sysconfig/ov-net/eth0_bond.conf
etc/sysconfig/ov-net/ifconfig.eth0
etc/passwd
etc/group
etc/shadow
etc/samba/
etc/samba/smb.conf.default
etc/samba/smb.conf.oviback
etc/samba/smb.conf
etc/krb5.conf
etc/hosts
etc/resolv.conf
etc/nsswitch.conf
etc/security/
etc/security/time.conf
etc/security/pam_env.conf
etc/security/namespace.init
etc/security/namespace.d/
etc/security/namespace.conf
etc/security/limits.d/
etc/security/limits.conf
etc/security/group.conf
etc/security/access.conf
etc/security/pam_winbind.conf
etc/pam.d/system-auth
etc/tgt/
etc/tgt/targets.conf
etc/tgt/examples/
etc/tgt/examples/targets.conf.vtl.MSL2024
etc/tgt/examples/targets.conf.vtl.L700
etc/tgt/examples/targets.conf.example
etc/tgt/conf.d/
var/lib/samba/
var/lib/samba/winbindd_cache.tdb
var/lib/samba/registry.tdb
var/lib/samba/share_info.tdb
var/lib/samba/group_mapping.tdb
var/lib/samba/account_policy.tdb
var/lib/samba/winbindd_privileged/
var/lib/samba/usershares/
var/lib/samba/usershares/data_smbvol0
var/lib/samba/usershares/data_smbvol1
var/lib/samba/private/
var/lib/samba/private/secrets.tdb
var/lib/samba/private/passdb.tdb
var/lib/samba/private/netlogon_creds_cli.tdb
var/lib/samba/private/secrets.ldb
var/lib/samba/private/msg.sock/
etc/sysconfig/ovios.conf

etc/yp.conf
etc/ypserv.conf

After this step, you should run:

bash-4.3# exit
exit

To go back to the ovios-shell.

Then:
ovios-shell> services restart network

To start up the interfaces and re-assign the IPs.

And:
ovios-shell> services start

To start all services which were previously enabled with "options".