Koozali.org: home of the SME Server

Contribs.org Forums => Koozali SME Server 10.x => Topic started by: stavi on December 05, 2022, 11:52:13 AM

Title: Export/import Reserved names and ip-s
Post by: stavi on December 05, 2022, 11:52:13 AM
Hello,
How can I export reserved host names, mac and ip addresses?
And then import it?
There are 150+ entries recorded as fixed IP.
It is possible?
I don't need a full USB backup. Only for reserved names.

Thank you very much.
Title: Re: Export/import Reserved names and ip-s
Post by: bunkobugsy on December 05, 2022, 12:49:10 PM
They're in /home/e-smith/db/hosts
Title: Re: Export/import Reserved names and ip-s
Post by: ReetP on December 05, 2022, 04:16:09 PM
There is no specific 'import' routine so be very careful.

There may well be other actions that run off 'host create' (ldap, groups etc etc) so that sticking them directly into the file may not work. Be VERY careful doing this.
Title: Re: Export/import Reserved names and ip-s
Post by: stavi on December 05, 2022, 04:49:00 PM
many thanks for the quick response!
Title: Re: Export/import Reserved names and ip-s
Post by: stavi on December 05, 2022, 04:50:45 PM
Thanks!
it will be due to new-fresh installation.
No other use, home server.
sandbox :)
Title: Re: Export/import Reserved names and ip-s
Post by: ReetP on December 05, 2022, 04:55:59 PM
it will be due to new-fresh installation.

OK.

Quote
No other use, home server.

That doesn't change anything.

Quote
sandbox :)

A very good idea, but again, be extremely careful with hidden actions doing things you don't expect.

Might be worth looking at the backup and migrate scripts.
Title: Re: Export/import Reserved names and ip-s
Post by: Jean-Philippe Pialasse on December 05, 2022, 10:53:09 PM
look at lazy admin tools in wiki
Title: Re: Export/import Reserved names and ip-s
Post by: ReetP on December 05, 2022, 11:03:16 PM
look at lazy admin tools in wiki

I always forget those :-)

Age. Brain fade.