Transferring configs

Associate
Joined
18 Nov 2005
Posts
421
I have got a new hard drive for my server, but I want to transfer the configs for Samba, dovecot, fetchmail ect. I have read that you need to transfer the /ect folder, but I am unsuse if this would work. I have already installed xubuntu on the hdd.
 
In theory you should be able to copy over the individual config files applicable to the particular applications you customised. Don't blindly copy over the entire /etc/ folder as it may upset the fresh install.

Also make sure that the configuration files you are copying over are for the same version of each package, if not you may need to adjust the files slightly. Once its all done, make sure you test it all and see if it works as intended.
 
Also, your home directory and dot files within there (files starting . )
These are user files, whereas /etc is system wide - quite a lot of configuration is done on a per user basis.

If you do a...

Code:
ls -a ~

...you'll see the dot files within your home directory. You may find some configuration in there..(depending how things are setup).

As said, you also want to be careful and not just copy the configuration straight over.. more of a manual process would be better to avoid anything breaking.
 
Use MondoRescue!

www.mondorescue.org

Excellent tool for P2V and P2P (Physical-to-Virtual and Physical-to-Physical) migrations. As you are using Ubuntu, do;

sudo apt-get install mondo

I believe it's in the standard repositories.

Very easy to set up and will automagically resize partitions to the new disk(s) geometry with minimal hassle and pretty much no effort :)

Run 'mondoarchive' to create a DVD image of your server, then burn this to disk. Then boot your new machine from this DVD and run the autorestore wizard.
 
Back
Top Bottom