Koozali.org: home of the SME Server

Problems with Restore from Workstation

Offline imcintyre

  • *
  • 609
  • +0/-0
Problems with Restore from Workstation
« 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?

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Problems with Restore from Workstation
« Reply #1 on: July 22, 2012, 11:56:55 PM »
imcintyre

Quote
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.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline imcintyre

  • *
  • 609
  • +0/-0
Re: Problems with Restore from Workstation (solved)
« Reply #2 on: July 24, 2012, 10:15:16 AM »
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.
« Last Edit: July 24, 2012, 11:48:12 AM by imcintyre »

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Problems with Restore from Workstation (solved)
« Reply #3 on: July 24, 2012, 10:39:35 AM »
imcintyre

Quote
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.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline purvis

  • *****
  • 567
  • +0/-0
Re: Problems with Restore from Workstation
« Reply #4 on: July 24, 2012, 02:15:05 PM »
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

Offline purvis

  • *****
  • 567
  • +0/-0
Re: Problems with Restore from Workstation
« Reply #5 on: October 13, 2013, 09:28:56 AM »
There is a line above missing a hyphen/dash character.
tar -C / zxvf smeserver.tgz
should be
tar -C / -zxvf smeserver.tgz
« Last Edit: October 15, 2013, 02:11:29 AM by purvis »

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Problems with Restore from Workstation
« Reply #6 on: October 14, 2013, 05:17:03 PM »
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.

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Problems with Restore from Workstation
« Reply #7 on: October 15, 2013, 01:27:44 AM »
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

Quote
  signal-event pre-restore
  tar -C / zxvf smeserver.tgz
  rm smeserver.tgz
  signal-event post-upgrade
  signal-event reboot
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.