Koozali.org: home of the SME Server
Obsolete Releases => SME Server 8.x => Topic started by: imcintyre on July 22, 2012, 08:00:07 PM
-
I'm wanting to restore from a backup to workstation and have done the following. I get the feeling that I am missing some basic but cannot see what.
Using Sme Server admin panel (SME 8 beta) did a back up to workstation (Windows 7) to an attached usb memory stick.
Verified the backup
Backup is four files; full-201207220836.1~4.dar
Size of 1~3 is 1,565,696 Kb
Size of 4 is 155,556
Burned full-201207220836.4.dar to DVD
Removed one drive of two drives from Raid 1
Installed SME 8 on drive in machine
When it gets to the step asking if I want to restore, I put the DVD in the drive.
I get the error message that no backup file is found.
Currently running from "removed" drive but want proceed with clean install.
Any help would be appreciated.
Side note:
When I switched the backup file size from cd to dvd, I found a potential issue.
http://wiki.contribs.org/Backup_with_dar
"....{
($backupwk{Slice} || '1529M') eq '1529M' ? "--slice 1529M\n" : "--slice $backup
}
..."
My file reads:
{
($backupwk{Slice} || '1529M') eq '1529M' ? "--slice 1529M\n" : "--slice $backupwk{Slice}\n"
}
Is the extra {Slice}\n an issue?
-
imcintyre
When it gets to the step asking if I want to restore, I put the DVD in the drive.
I get the error message that no backup file is found.
I assume you mean when installing a fresh sme OS. That restore method is only from USB (which I think it says), and it uses the backup done via Console backup menu.
Workstation backups must be restored (using the server manager panel) from the same location they were backed up to ie the USB connected to your workstation.
There are alternative non standard ways to restore, described in the Backup config Howto, link at top of forums.
Note to read a DVD drive you will need to manually issue a suitable mount command.
-
Mary;
Thanks for reply. I reread the manual section on installing SME and found the distinction. I'd been reading Backup with Dar and could not see my error.
-
imcintyre
That restore method is only from USB (which I think it says), and it uses the backup done via Console backup menu.
Actually that restore method (offered at first boot of newly installed OS), will also restore backups made using the server manager Backup to Desktop function.
The Console Backup to USB, and the server manager Backup to Desktop both create a smeserver.tgz file.
-
I do not know how big your backup file is but i used two methods not listed.
Both ways for me is to just install your server straight up and get it running on your hardware.
Then transfer your smeserver.tgz file by either
1 Place the file on different server then use the wget program on your new server to retrieve the from the server console.
on the server console
cd /
wget http://someserver.com/directory/smeserver.tgz
2 Place your smeserver.tgz file on the server in the Primary bay by attaching to the server from your workstation.
on the workstation
net use x: /d /y
net use x: \\newserver\Primary\html rootpassword /user:admin
copy smeserver.tgz x:
then on server
cd /
mv /home/e-smith/files/ibays/Primary/html/smeserver.tgz /
after you get the smeserver.tgz file into the root directory of your new server and then on the server console logged in with the root user name.
cd /
ls
a comment: you should see the file smeserver.tgz after the ls command
signal-event pre-restore
tar -C / zxvf smeserver.tgz
rm smeserver.tgz
signal-event post-upgrade
signal-event reboot
After the reboot, i then logged into the server-manager panel and went to each ibay and when reviewing the group/person permissions, clicked on the save button. I did this for each ibay.
Then on the server console, logged in with the root account again, run on the server
yum clean all
yum update
signal-event post-upgrade
signal-event reboot
-
There is a line above missing a hyphen/dash character.
tar -C / zxvf smeserver.tgz
should be
tar -C / -zxvf smeserver.tgz
-
There is a line above missing a negative/minus character.
Also called 'hyphen' or 'dash' :-)
'negative' and 'minus' have mathematics semantics which don't apply here.
-
purvis et al
This method was documented long ago (in 2009 ?) here
http://wiki.contribs.org/Backup_server_config#Command_line_manual_Restore_from_USB_drive_or_memory_stick
There are many other useful tips re backup & restore in that Howto
signal-event pre-restore
tar -C / zxvf smeserver.tgz
rm smeserver.tgz
signal-event post-upgrade
signal-event reboot