This is not perfected…..
rebuild server with the following…
- update
- all mount points
- backup
- java7
- apache2 base
- apache2 ssl
- apache2 mono
- rsync -raltWv –progress –exclude /root/logs/srv.rsync.log –log-file=/root/logs/srv.rsync.log /mnt/nfs/fs-01.sdb1/backup/apache-01/srv/ /srv/
- rsync -raltWv –progress –exclude /root/logs/srv.rsync.log –log-file=/root/logs/srv.rsy nc.log /mnt/nfs/fs-01.sdb1/backup/apache-01/etc/apache2/sites-available/ /etc/apache2/sites-available/
- enable sites
- start apache
Dest Machine:
cd /tmp/
rm -rf ./www/
Source Machine:
backup —> scp -r /srv/www/Java.Qbytesworld.com/ davidq@apache-999:/tmp/www/
restore —> rsync -raltWv –progress –exclude=*.rsync.log –log-file=/root/logs/www.rsync.log /mnt/nfs/fs-01.sdb1/backup/apache-01/srv/www/ /tmp/www/
Dest Machine:
/etc/init.d/tomcat7 stop
mv /tmp/www/Java.Qbytesworld.com/ /srv/www/
chown -R apache:apache /srv/www/
/etc/init.d/tomcat7 start
May be needed?
chmod -R 775 /srv/www/