Koozali.org: home of the SME Server

Restore problems with Dar2

Offline EdelingF

  • *****
  • 215
  • +0/-0
Restore problems with Dar2
« on: December 07, 2007, 06:44:29 PM »
I'm trying to move my server data from the current server to a new one using dmay's dar2 and everything seems to be copied allright but not mysql-data. All the websites running on joomla, gallery and so on give "his web site is under construction".
Also phpmyadmin is not to be found.

With Dar I backup:
etc/e-smith/templates-custom
etc/e-smith/templates-user-custom
etc/group
etc/gshadow
etc/passwd
etc/samba/secrets.tdb
etc/samba/smbpasswd
etc/shadow
etc/smbpasswd
etc/ssh
etc/sudoers
home/e-smith
opt
root 


I'm I forgetting something perhaps?
...

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
Re: Restore problems with Dar2
« Reply #1 on: December 07, 2007, 10:55:03 PM »
All the websites running on joomla, gallery and so on give "his web site is under construction"..

Sounds like you need to delete the default index.htm file in the ibay.

Also phpmyadmin is not to be found.

Did you install it? Sounds like you may not have followed the correct restore order which includes:

1) install new server
2) install contribs
3) perform restore

Darrell

Offline EdelingF

  • *****
  • 215
  • +0/-0
Re: Restore problems with Dar2
« Reply #2 on: December 08, 2007, 06:08:40 PM »
So does this mean I have to install all the contribs I have installed on my old server?
For instance, with gallery (installed in opt) I saw a fragment of gallery but with a mysql error.
And the main website I MUST be able to restore is a joomla site in a Ibay. So if installing joomla does the trick I'll do that.
...

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Restore problems with Dar2
« Reply #3 on: December 09, 2007, 01:39:05 AM »
EdelingF

Quote
....copied allright but not mysql-data.

You can check to see if the mysql dbs have been restored on the new server, look in
/var/lib/mysql/...dbname...


Quote
So does this mean I have to install all the contribs I have installed on my old server?

The sme server backup/restore concept is that ALL contribs must be reinstalled, to the same locations and in the same way as they were on the original server (and the same versions too).
You won't need to configure the reinstalled apps, as configuration information should have been backed up and restored.

Note also, that the restore should ONLY be done to a clean installation of the sme server OS, it should only have basic configuration done to allow you to connect to the network and run the restore .
« Last Edit: December 09, 2007, 01:41:12 AM by RayMitchell »
...

Offline EdelingF

  • *****
  • 215
  • +0/-0
Re: Restore problems with Dar2
« Reply #4 on: December 09, 2007, 11:23:28 AM »
Ok, thats clear.
It leaves me with just two questions:
- do I also have to reinstall contribs I no longer need?
- how do I find out which contribs I have been installing?
...

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Restore problems with Dar2
« Reply #5 on: December 09, 2007, 03:54:58 PM »
EdelingF

Quote
do I also have to reinstall contribs I no longer need?

Theoretically no.
As this may leave config information & templates still installed on your system (from the restored backup), it may be wiser to reinstall the unwanted contrib and then uninstall it, which should remove unwanted config info & templates.

Quote
how do I find out which contribs I have been installing?

You could compare the rpms installed on your old system and your new system.
You could review the server manager panels and see what contribs have been installed.
You could do
rpm -qa rpmname
to see what contrib versions were installed on the old server.
Use your memory.

For the future, it is wise to create an ibay where you religously copy every contrib/rpm that you install.
This ibay (and contribs) get included in regular backups. When the backup is restored on your new system you also have all the contribs you need to reinstall readily available, just
cd /home/e-smith/files/ibayname/files/...
and start reinstalling.

« Last Edit: December 09, 2007, 03:56:33 PM by RayMitchell »
...

Offline EdelingF

  • *****
  • 215
  • +0/-0
Re: Restore problems with Dar2
« Reply #6 on: December 09, 2007, 04:26:08 PM »
Thanks for the tip about he contribs-ibay.
I'll start comparing now, thanks for your help!
...

Offline EdelingF

  • *****
  • 215
  • +0/-0
Re: Restore problems with Dar2
« Reply #7 on: December 09, 2007, 07:05:59 PM »
After comparing the installed RPM's I come to the conclusion there are al lot of (versions of) RPM's not to be found anymore....
Is there a possibility to only copy/restore a Joomla installation in an Ibay?
Everything else is reinstallabale with newer versions and I would also get rid of a lot of junk.
True time I apperently installed a lot of things I don't need anymore......

Quote
*
* The following packages are installed on 192.168.1.250,
* but they are missing on this backup host:
*
compat-libstdc++-33-3.2.3-47.3
smeserver-cups-0.0.1-02
cups-samba-1.1.19-02
perl-Archive-Zip-1.16-1.2.el4.rf
gimp-print-cups-en-4.2.7-2.rvda.1
smeserver-nag-1.0-8
ffmpeg-0.4.8-3.CTU
smeserver-egroupware-1.4-8
smeserver-gollem-1.0-7
SDL-1.2.7-8
kmod-ppp-smp-1.0.2-2.2.6.9_55.0.12.
trean-0.1-0
smeserver-trean-0.1-2
nag-h3-2.0.4-1sme01
smeserver-webshare-1.0.0-8dmay
smeserver-phpmyadmin-2.6.4-pl4.dmay
libvorbis-1:1.1.0-2.el4.5
smeserver-dar2-0.0.1-3dmay
lame-3.96.1-2.CTU
kernel-module-pptp-conntrack-nat-2.0-1_2.6.9_42.0.2.EL
pear-net_url-1.0.14-00sme
kronolith-h3-2.1.4-00sme01
hpijs-1.7.1-02.rvda.1
smeserver-mnemo-1.0-5
alsa-lib-1.0.6-5.RHEL4
smeserver-kronolith-1.1-6
pear-http_request-1.4.0-00sme
rar-3.5.1-7dmay
kmod-appletalk-smp-1.0-2.2.6.9_55.0.12.EL
smeserver-mimp-1.0-5
mnemo-h3-2.0.3-1sme01
gollem-h3-1.0.2-1
cups-1:1.1.22-0.rc1.9.20.2.
mimp-h3-1.0-1
perl-Apache-Htpasswd-1.5.9-1.1.el3.rf
gamin-0.1.7-1.2.EL4
perl-XML-RSS-1.10-1.el4.rf
kernel-smp-2.6.9-42.0.3.EL
gimp-print-cups-common-4.2.7-2.rvda.1
: kmod-appletalk-smp-1.0-2.2.6.9_55.0.12.EL
smeserver-mimp-1.0-5
mnemo-h3-2.0.3-1sme01
gollem-h3-1.0.2-1
cups-1:1.1.22-0.rc1.9.20.2.
mimp-h3-1.0-1
perl-Apache-Htpasswd-1.5.9-1.1.el3.rf
gamin-0.1.7-1.2.EL4
perl-XML-RSS-1.10-1.el4.rf
kernel-smp-2.6.9-42.0.3.EL
gimp-print-cups-common-4.2.7-2.rvda.1
ghostscript-fonts-5.50-13
xinetd-2:2.3.13-4.4E.1
python-ldap-2.0.1-2
foomatic-filters-3.0.2-02
kmod-slip-smp-1.0-2.2.6.9_55.0.12.EL
ImageMagick-6.0.7.1-17
smeserver-diskusage-0.0.1-1dmay
libogg-2:1.1.2-1
pear-net_socket-1.0.6-00sme
perl-File-RsyncP-0.68-1.el4.rf
ghostscript-8.15.2-0.rvda.1
perl-Time-modules-2003.1126-1.2.el4.rf
comps-2:4.5CENTOS-0.20070506
compat-libstdc++-296-2.96-132.7.2
joomla-1.0.12-1
hpijs-ppds-1.7.1-02.rvda.1
urw-fonts-2.2-6.1.rvda.1
dar-2.3.2-1
faac-1.24-1.CTU

*
* The following packages are installed on both,
* the source 192.168.1.250 and on this backup host,
* but the version does not match:
*
perl-IO-Socket-SSL-1.07-2.el4.rf
pcre-6.7-1
pam_abl-0.2.3-2.el4.sme
perl-LDAP-0.34-1.el4.rf
perl-Mail-RFC822-Address-0.3-1.el4.sme
perl-TimeDate-1:1.16-6.el4
perl-XML-SAX-0.16-1.el4.rf
...

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Restore problems with Dar2
« Reply #8 on: December 09, 2007, 07:29:13 PM »
EdelingF

It's probably OK to simply not install the "unwanted" contribs.
You will probably have "stray" entries in mysql dbs etc, so you could simply leave those & ignore them, or manually remove that data.

Alternatively you could uninstall those contribs on your old server, then do a backup, then do a restore on the new server.
Use
rpm -e packagename
(without numbers)

Config info, mysql entries etc will no longer be transferred in the restore process.
...