host says I have to rebuild
Great
So the host my server is with says that due to not installing the correct hard drive originally, they will put a new one in but I have to rebuild. Can I just copy /etc, /var/log, /var/www, and /usr/local to the new hard drive and all be running again? I'm guessing it will involve a reinstall of the software first followed by copying these folders over? What folders should be copied? I guess the main question is do I avoid the hassle and leave it at 512Mb RAM and 80Gb hard drive? It is only going to act as a proxy server and I can always increase RAM later or get more servers if needed. I don't think I have any need for the caching functionality of squid as users are going to mainly be using video and I can't cache that much data. Caching webpages will cause minimal performance improvement IMO as everyone will access different sites. Also, when I rebuild, and extra RAM is added, will the OS increase the swap partition size accordingly? Quote:
|
tried to hack my way in at times
Hi, I've done quite a few installs and tried to hack my way in at times.
Like this... Code:
Can I just copy /etc, /var/log, /var/www, and /usr/local Some times it takes longer to sort out any bugs from older packages if they have been upgraded during install. After partitioning and formatting the 250Gb drive, It would not hurt to rsync the directories, for a foundation, but if /etc is on the same partition as / it will be lost during install. Same goes for /var/www and /var/log if on the / (root) partition. I would back them up, and use the files I required as a reference and/or replacement configs (once the appropriate (desired) packages are installed) A good place for this would be the /home/<username>/<backup-dir-here> directory if it is on a separate partition from / (root) and /usr (also generally gets formatted, things can get crazy if not) Then once the server is installed and running, copy the config files to /etc. You won't be able to use all of them, but some of them will certainly save you some time and brain-memory. Your old programs installed in /usr/local (I have a separate partition for this to) may be rsync 'd saving permissions as it does. Just some general knowledge about installs. hope that helps you, regards Glenn ps, my /etc/fstab file looks like this (just linux)... Code:
# Entry for /dev/sda6 : Many config files for users and /root are in their home dirs. Don't forget them. I think I would ask them to backup the whole 80Gb to /home/....as is. Code:
will the OS increase the swap partition size accordingly Cheers Glenn |
I suppose I could reinstall the programs individually.
To be honest the main things I care about are the conf files. Could I just copy those across? httpd.conf squid.conf ssh.conf or sshd.conf squid_passwd files /etc/sysconfig/iptables /etc/crontab /etc/cron.daily any self developed scripts anything else major? I guess SARG I just reinstall completely as it's files seem all over the place. |
Yes. You could but you may get permission probs with the password file.
use rsync, it keeps the permissions in tact. But at the same time the rest would only need root access to copy the files accross. I have a few scripts that automate the process for my system after a clean install. I break my system all the time, But not the last year or so. also... Code:
#! /bin/bash Code:
sudo rpm --list -qa > /home/glenn/build/rpm-list-qa.txt Regards Glenn |
All times are GMT -5. The time now is 07:10 AM. |