Page 1 of 1

Import partial or part of config?

Posted: 05 Dec 2013 10:09
by madgabz
Hi,
I'm trying to regenerate my crashed nas4free system, but only needs to import specific parts of the config! Is that possible?
I will be editing the xml manually then import it using the web frontend, will that only make the necessary changes, or will that still overwrite some other basic settings or whatnot?

TIA,
MadGabZ

Re: Import partial or part of config?

Posted: 05 Dec 2013 10:51
by raulfg3
yes it's possible, and be recomended long time a go when nas4free start to migrater from FreeNAS 0.7, but be carefull and have a not edit file to replace actual one if somethings fails.

Re: Import partial or part of config?

Posted: 05 Dec 2013 17:31
by madgabz
OK, that wasn't an entirely easy one!
Removing all other entries in config.xml, BUT the one I needed made nas4free go back to defaults for all other entries, than the ones i left! So, to do this, you have to backup your current (new install) config, then take the parts from old config you need to transfer, and replace them equivalent parts in the new config with the ones from the old!
example: I installed a new nas4free, setup all access and share parts, and manually reconfigured disks setup (i had a few changes!). Then, backup the new config.xml. Now, I need to re-import the old rsyncd and access parts (users'n'groups) from my old setup. I load up the new config.xml backup, and the old config.xml as well, in my favourite windows editor, Notepad++ (YMMV!). I copy only the entire 'rsyncd' & 'access'-parts from the old config.xml, and overwrite/paste the corresponding parts in the new config.xml. I save this as a config_modded.xml, and restore this file in nas4free, and reboots! voila!