Skip to content

Snapshots

Troy Prelog edited this page Jun 14, 2020 · 1 revision

Jail Snapshots

These commands are run from the FreeNAS Console

Create a snapshot of Home Assistant Core jail
  • Use -n to name your snapshot
  • If the jails name is homeassistant

The following would, on Oct 3 2018 create a snapshot named [email protected]

sudo iocage snapshot homeassistant -n $(date +%Y.%m.%d)
List snapshots in homeassistant
sudo iocage snaplist homeassistant
Rollback to previous snapshot
sudo iocage stop homeassistant
sudo iocage rollback homeassistant -n 2018.10.03
sudo iocage start homeassistant
Remove snapshot from homeassistant
sudo iocage snapremove homeassistant -n 2018.10.03

If you need to restart the jail iocage docs recommend using the -s switch.
This "soft-restart" will help prevent issues that could arise from a "hard-restart" when vnet=on

sudo iocage restart -s homeassistant

You can also start or stop the jail.

sudo iocage [start|stop] homeassistant