Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: derrobe on February 16, 2005, 11:14:18 PM

Title: Help 6.0 to 6.5 problems
Post by: derrobe on February 16, 2005, 11:14:18 PM
I ran a backup and did a clean install on my old 6.0 box Successfully installed 6.5beta2 but now the back up from the 6.0 will not restore on 6.5.  Any help would be greatyly appreciated.
Title: Help 6.0 to 6.5 problems
Post by: raem on February 17, 2005, 07:55:46 AM
It is beta software and not all things work correctly on beta versions. You should report it to the Bug Tracker.
Title: Help 6.0 to 6.5 problems
Post by: raem on February 17, 2005, 08:30:03 AM
Read this also:
http://forums.contribs.org/index.php?topic=25871.0

"Although the upgrade option is offered, 6.5b2 is not designed to do an update of any version. But some people have successfully updated from 6.0 and 6.01."

"Let me correct that just a bit. 6.5b2 will upgrade a clean SME Server 6.0.1 or a clean Mitel 6.0 install."

"It will clearly break some contribs, and there are no plans to do upgrades from prior betas at this point."
Title: Help 6.0 to 6.5 problems
Post by: derrobe on February 17, 2005, 04:14:20 PM
Ok well here is another issue I reverted back to a clean install of mitel 6.0 buyt I am still unable to restore the data back to the system I an running windows xp home for the restore and the file is 2.03GB  I can successfully open it with winrar and veiw and extract the contents.  someone suggested that it might be a size issue.  I hit the restore from file button choose the file and hit the restore button.  It thinks for a like the status bar gets to about half way and then it shoots to the end telling me the pare you are trying to view contain secure and unsecure part do you want to veiw the page.  If I say yes I get page can not be displayed message and if I hit no I get action canceld message.   Some one please help me figure out what I need to do.  I thought about manually putting back the files but there were two files that I could not manually extract both were password files and I think they may be system critical
Title: Help 6.0 to 6.5 problems
Post by: raem on February 17, 2005, 04:29:50 PM
As far as I understand it, if your backup file is larger than 2Gb it will not restore properly (or not at all). It's a limitation of smb, tar and even the browser you use.

You need to make a new backup less than 2Gb (split if neccessary by backup2ws contrib), and start again. This subject has been extensively covered in the forums, search on backup and backup2ws and go back a year or two.
Title: Help 6.0 to 6.5 problems
Post by: derrobe on February 17, 2005, 04:41:57 PM
Well I tried to open the archive and delete on of the large files on it to make it under 2.0 gb but I can find something nthat will let me delete a file out of a tgz.  Also I cant go back and make a new backup the machine is already blown away

Also when I try to extract I get eh following error messages

Code: [Select]
!   C:\Documents and Settings\Ian\Desktop\smeserver.tgz: Cannot open \home\e-smith\files\ibays\Primary (\home\e-smith\files\ibays\Primary --> home\e-smith\files\primary)
!   C:\Documents and Settings\Ian\Desktop\smeserver.tgz: Cannot open \etc\samba\smbpasswd (\etc\samba\smbpasswd --> etc\smbpasswd)
Title: Help 6.0 to 6.5 problems
Post by: raem on February 17, 2005, 04:49:03 PM
I think you will have to rebuild from scratch.
 
Next time fully test your backup and restore routine on a test server BEFORE wiping out your "wanted" disk.
You might like to use the backup2ws contrib to allow you to split the backup into less than 2Gb chunks.
Title: Help 6.0 to 6.5 problems
Post by: derrobe on February 17, 2005, 04:55:00 PM
Rebuild from scratch is not an option I am willing to take at this moment.  Can someone please tell me how I can remove a single file from the backed up file.
Title: Help 6.0 to 6.5 problems
Post by: bushinc on February 17, 2005, 05:49:30 PM
Okay..I'm not sure what the commands would be, nor have I dont this myself, but I would try copying the tgz file to an empty ibay on your 6.5 server.  From a command prompt untar it...something like tar -xvzf <filename>

Delete/move files that you don't need...

Create the tgz file using something like tar -cvzf <filename>

Move the file to your PC and try the restore again.

If the restore won't work, you may need to rebuild from scratch using the files inside the tgz archive..assuming the archive is complete and didn't get stopped at the 2GB limit.
Title: Help 6.0 to 6.5 problems
Post by: raem on February 18, 2005, 03:06:38 AM
>..assuming the archive is complete and didn't get stopped at the 2GB limit.

That's most likely already the issue, you have missing or incomplete files in your archive.

It's already telling you that files are "missing" from the archive ie
Cannot open \home\e-smith\files\ibays\Primary (\home\e-smith\files\ibays\Primary --> home\e-smith\files\primary)
Cannot open \etc\samba\smbpasswd (\etc\samba\smbpasswd --> etc\smbpasswd)
Title: Help 6.0 to 6.5 problems
Post by: derrobe on February 19, 2005, 01:02:07 AM
I was able to untar it and make a new TGZ file after I removed the files over the 2gb limit but now it is telling me that it cant read the file I am using the tar -cjf filename.tgz command to remake the file.  May main concern is I had several databases I need to restore that work with PHP nuke and I need to get them back up and running the webpages and the databases.  Please any help greatly appreciated I have the orginal back up still and I can recreate users ids if I have to but the DB and the phpnuke is my biggest concern
Title: Help 6.0 to 6.5 problems
Post by: raem on February 19, 2005, 06:25:14 AM
derrobe

> May main concern is I had several databases I need > to restore that work with PHP nuke

If you have been able to untar the backup file then you may have access to the mysql database files. Look in /var/lib/mysql/.... for the databases and files.
You can copy the whole database over to your new server in the same location. You may have to re-enter the mysql database users and passwords to get them working again, but at least you will have the data !!

Of course you may need to still rebuild the server from scratch in other respects.
Title: Help 6.0 to 6.5 problems
Post by: derrobe on February 19, 2005, 04:56:53 PM
Thanks for the help all I ended up untaring the file in an ibay then rming all the files I did not need in the back up then re taring it and and the restore worked one I used the right switches
Title: Help 6.0 to 6.5 problems
Post by: bushinc on February 19, 2005, 07:15:14 PM
What were the tar switches you used?

I'm glad everything came back...
Title: Help 6.0 to 6.5 problems
Post by: derrobe on February 19, 2005, 09:09:45 PM
to unzip -tar -xvzf file.tgz

to rezip that will allow you to use it as a back up tar -czf filename.tgz directory/*