Persistent storage#
By default SimpleSwitch™ container do not persist data, meaning that at a restart
files written in a previous run are gone.
If you need to have files kept over restart or reboots, you can pass the --storage-size
(in bytes) flag
to simpleswitch-generate-package
.
This will create a new disk on the device sized according to the passed setting.
Note
Only files and folders stored under /home
will be persisted.
Be sure to write data and configuration only to /home
from your
SimpleSwitch™ application