Restoring a Saved Configuration for an iSCSI target
To restore a saved configuration for an iSCSI target, start the targetcli interactive shell and then run the following command:
sudo targetcli
targetcli shell version 2.1.58 Copyright 2011-2013 by Datera, Inc and others. For help on commands, type 'help'. /> restoreconfig /etc/target/saveconfig.json
The /etc/target/saveconfig.json
file stores
the most recently saved configuration.
As an alternative, run the following command to restore saved configurations from previous versions:
/> restoreconfig /etc/target/backup/saveconfig-20180516-18:53:29.json