Koozali.org: home of the SME Server

Dump ALL settings to text file

David Kenyon

Dump ALL settings to text file
« on: December 18, 2002, 04:21:21 AM »
Hi,

I'm a new user so bare with me here...

I have an existing SME Server system and I would to dump all software configuration settings to a text file so I can apply them to another system.  Is this possible?

Replies by e-mail are preferred if possible.

Cheers,

guestHH

Re: Dump ALL settings to text file
« Reply #1 on: December 18, 2002, 09:03:13 AM »
a normal backup/restore (to desktop) will do the trick

Cyrus Bharda

Re: Dump ALL settings to text file
« Reply #2 on: December 18, 2002, 09:07:25 AM »
So if I did a normal backup to desktop, then got a totally new box, installed the same version of SME and did a restore then everything would be back to original settings?

Cyrus Bharda

guestHH

Re: Dump ALL settings to text file
« Reply #3 on: December 18, 2002, 10:46:04 AM »
yep

Jens Kruuse

Re: Dump ALL settings to text file
« Reply #4 on: December 18, 2002, 11:55:44 AM »
Please correct me if  I'm wrong, but a Desktop backup doesn't have any post-installation RPMs, so those would have to be applied too. (Eg. Update 2).

/Jens

guestHH

Re: Dump ALL settings to text file
« Reply #5 on: December 18, 2002, 12:42:37 PM »
That is correct Jens. David was asking about 'just' the configuration. The server install must be completed first.

Jens Kruuse

Re: Dump ALL settings to text file
« Reply #6 on: December 18, 2002, 12:58:07 PM »
True. I was just a bit worried that Cyrus would misunderstand.
("So if I did a normal backup to desktop, then got a totally new box, installed the same version of SME and did a restore then *everything* would be back to original settings?") Everything is such a dangerous expression. :-)

/Jens

David Kenyon

Re: Dump ALL settings to text file
« Reply #7 on: December 19, 2002, 01:49:05 AM »
Thanks guys!

I'll give your suggestions a go and keep you posted.

Your help is much appreciated.

Thanks again!

Cyrus Bharda

Re: Dump ALL settings to text file
« Reply #8 on: December 19, 2002, 04:55:41 AM »
So basically if I do a backup to desktop and have a copy of all my installed RPM's that are not part of the standard installation then I can do a clean install on a new box and restore from desktop and apply RPM's and all will be well?

Thanks

Cyrus Bharda

Aaron

Re: Dump ALL settings to text file
« Reply #9 on: December 19, 2002, 07:12:10 AM »
Dont forget to copy any cron scripts that live in the cron.daily/weekly/monthly et al, as they dont get copied automatically in backup in versions up to and inc 512. Its hard for me to understand why this wouldnt be included in the backup, but...

My suggestion, as was suggested to me by another forum member, was to create a /home/e-smith/local folder for such system scripts as that tree is automatically included. Naturally if you had custom scripts you'd have to create a custom template to reflect your job and its home location. This has saved my butt on many an occasion.

My 2c!

Charlie Brady

Re: Dump ALL settings to text file
« Reply #10 on: December 19, 2002, 07:18:38 AM »
Cyrus Bharda wrote:

> So basically if I do a backup to desktop and have a copy of
> all my installed RPM's that are not part of the standard
> installation then I can do a clean install on a new box and
> restore from desktop and apply RPM's and all will be well?

Yes. I recommend that you keep all add-on RPMs in an i-bay, so they are restored from backup, so that you can then re-install them on the new system.

Note that restore from desktop is limited to 2GB for versions < 5.6.

Charlie

Charlie Brady

Re: Dump ALL settings to text file
« Reply #11 on: December 19, 2002, 07:23:02 AM »
Aaron wrote:

> Dont forget to copy any cron scripts that live in the
> cron.daily/weekly/monthly et al, as they dont get copied
> automatically in backup in versions up to and inc 512. Its
> hard for me to understand why this wouldnt be included in the
> backup, but...

Because all the cron scripts in a standard system are installed from RPM. We expect that any add-on ones will be installed from RPM as well, or will come from templates in /etc/e-smith/templates-custom.

Regards

Charlie