Koozali.org: home of the SME Server

USB Backup

Offline benny

  • **
  • 22
  • +0/-0
    • http://www.andesigns.com.au
USB Backup
« on: March 18, 2007, 05:44:15 AM »
This is a stupid question, just completed a backup on a usb drive using the facility in the admin panel. How do you restore from the disk and is it a full backup :oops:

Thanks
Benny

Offline byte

  • *
  • 2,183
  • +2/-0
Re: USB Backup
« Reply #1 on: March 18, 2007, 11:22:43 AM »
Quote from: "benny"
This is a stupid question, just completed a backup on a usb drive using the facility in the admin panel.


Do you mean the USB Backup within the console screen ? If not ignore below  :P
 
Quote

 How do you restore from the disk


When you next time reinstall the SME Server a screen will ask you if you wish to restore your backup with yes/no options, this is the screen just before you setup your admin password after installing.

On saying that because this is in an update it will not be available on a 7.1 ISO, you will have to wait for the next ISO. You could still resintall server with a 7.1 ISO then update to 7.1.2, then back at command prompt issue "db configuration setprop bootstrap-console Run yes" then give it "signal-event post-upgrade;signal-event reboot" and with any luck you will see the new restore via USB backup.

Quote

and is it a full backup :oops:


Yes.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline benny

  • **
  • 22
  • +0/-0
    • http://www.andesigns.com.au
USB Backup
« Reply #2 on: March 18, 2007, 11:47:38 AM »
Many thanks, I have tried a few backup systems but seems to me this is the better way to backup. Feeling much more confident, thankyou

Offline progitto

  • *****
  • 217
  • +0/-0
    • http://umbertomassari.dyndns.org
USB Backup
« Reply #3 on: March 19, 2007, 11:04:06 AM »
I don't think this is a full backup, I've tried it and it give me a 4 Gb backup archive but I have 20 Gb data in ibays.

Offline pfloor

  • *****
  • 889
  • +1/-0
USB Backup
« Reply #4 on: March 19, 2007, 06:08:22 PM »
Quote from: "progitto"
I don't think this is a full backup, I've tried it and it give me a 4 Gb backup archive but I have 20 Gb data in ibays.

It should be a full backup of the configuration,  users and passwords, custom templates and /home/e-smith/.  Here is the list.

        'home/e-smith',
        'etc/e-smith/templates-custom',
        'etc/e-smith/templates-user-custom',
        'etc/ssh',
        'root',
        'etc/sudoers',
        'etc/passwd',
        'etc/shadow',
        'etc/group',
        'etc/gshadow',
        'etc/samba/secrets.tdb',
        'etc/samba/smbpasswd',
        'etc/smbpasswd',


NOTE: It does NOT backup web apps in the /opt directory.

Please check your smeserver.tgz tar file and determine if the backup is incomplete.  If it is incomplete, report this to the bug tracker.
In life, you must either "Push, Pull or Get out of the way!"

Offline progitto

  • *****
  • 217
  • +0/-0
    • http://umbertomassari.dyndns.org
USB Backup
« Reply #5 on: March 19, 2007, 08:17:04 PM »
I've tried to open the archive with 7z on a winXP pc but it's a currupted file.  :?:
This is so strange, tomorrow I'll try to do a new backup

Offline benny

  • **
  • 22
  • +0/-0
    • http://www.andesigns.com.au
Full Backup
« Reply #6 on: March 19, 2007, 10:18:00 PM »
Thats interesting, I am more concerned about backing up Ibays and Mysql than the system, I am running many domains and several databases. Not too conversive with command line stuff always have a fear of killing the machine. Backuppc is installed but not totally comvinced its doing the job as I want it.

Offline pfloor

  • *****
  • 889
  • +1/-0
Re: Full Backup
« Reply #7 on: March 19, 2007, 11:21:59 PM »
Quote from: "benny"
Thats interesting, I am more concerned about backing up Ibays and Mysql than the system, I am running many domains and several databases. Not too conversive with command line stuff always have a fear of killing the machine. Backuppc is installed but not totally comvinced its doing the job as I want it.


Sorry, I should have mentioned that in addition to the backup list above, the system backup also does a mysqldump.  And all the ibays reside under /home/e-smith so it does backup your ibays.
In life, you must either "Push, Pull or Get out of the way!"

Offline benny

  • **
  • 22
  • +0/-0
    • http://www.andesigns.com.au
Phew
« Reply #8 on: March 19, 2007, 11:46:34 PM »
Thats great thanks heaps. All I need to do now is set up a test machine and try doing a restore. One more question, wil it restore to a machine that is not identical to the original. I am running 2 sata 250 gb drives with mirroring the test machine is a singel 200 gb ide. I have a feeling that it wont I think it needs to be restored to the original config

Offline pfloor

  • *****
  • 889
  • +1/-0
Re: Phew
« Reply #9 on: March 19, 2007, 11:54:06 PM »
Quote from: "benny"
Thats great thanks heaps. All I need to do now is set up a test machine and try doing a restore. One more question, wil it restore to a machine that is not identical to the original. I am running 2 sata 250 gb drives with mirroring the test machine is a singel 200 gb ide. I have a feeling that it wont I think it needs to be restored to the original config

Backup/restore using this process is NOT machine specific.  You should be able to restore to totally different hardware.

SME moto:  "It should JUST WORK".

If it doesn't work, please post a bug report.
In life, you must either "Push, Pull or Get out of the way!"

Offline benny

  • **
  • 22
  • +0/-0
    • http://www.andesigns.com.au
I love SME Server
« Reply #10 on: March 19, 2007, 11:58:01 PM »
I will try asap and post result

Offline raem

  • *
  • 3,972
  • +4/-0
USB Backup
« Reply #11 on: March 20, 2007, 09:24:01 AM »
progitto

> I've tried to open the archive with 7z on a winXP pc but it's a currupted file.  :?:

Possibly the 4Gb backup file size is actually a truncated file due to the 4Gb backup file size limit.
...

Offline progitto

  • *****
  • 217
  • +0/-0
    • http://umbertomassari.dyndns.org
USB Backup
« Reply #12 on: March 20, 2007, 10:07:47 AM »
There is still the file limit?
It's not only a  Apache limit the 4 gb size?
I think that my problem could be that server disks are quite full and there isn't enought space to create the .tar file.
I'll try to do a new backup this night and I'll post the result.

Offline byte

  • *
  • 2,183
  • +2/-0
USB Backup
« Reply #13 on: March 20, 2007, 10:43:50 AM »
Quote from: "RayMitchell"

Possibly the 4Gb backup file size is actually a truncated file due to the 4Gb backup file size limit.


Ray - There is no backup size limit if you are using the USB backup within the  console menu.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline benny

  • **
  • 22
  • +0/-0
    • http://www.andesigns.com.au
Restore From USB
« Reply #14 on: March 21, 2007, 01:37:49 AM »
Hi all
Unfortunately the restore from usb did not work. After installing sme on a new pc and updating it with the server manager I ran the commands at the prompt as described previously.
The only thing I did find is the pc would not start with the usb drive attached I had to remove the drive to start machine. Dont know if this has any bearing on the problem. So it seems I am back to square one, any comments or suggestions appreciated
Benny

Offline progitto

  • *****
  • 217
  • +0/-0
    • http://umbertomassari.dyndns.org
USB Backup
« Reply #15 on: March 21, 2007, 10:16:59 AM »
I have opened a bug in bugtracker
http://bugs.contribs.org/show_bug.cgi?id=2754

Offline pfloor

  • *****
  • 889
  • +1/-0
Re: Restore From USB
« Reply #16 on: March 21, 2007, 04:28:10 PM »
Quote from: "benny"
Hi all
Unfortunately the restore from usb did not work. After installing sme on a new pc and updating it with the server manager I ran the commands at the prompt as described previously.
The only thing I did find is the pc would not start with the usb drive attached I had to remove the drive to start machine. Dont know if this has any bearing on the problem. So it seems I am back to square one, any comments or suggestions appreciated
Benny
If you followed these steps and it didn't work then please file a bug report and describe EXACTLY the steps you took and how and where it failed:

-Install 7.1 from CD
-Update to 7.1.2 using yum
-signal-event post-upgrade
-signal-event reboot
After reboot, do this:
-db configuration setprop bootstrap-console Run yes
-signal-event post-upgrade
-signal-event reboot
During reboot reconfiguration process you should see the new restore via USB backup option.
-NOW plug in the usb drive
-Pick "yes" or "restore" (or whatever is presented to you) and restore.

If it doesn't work, please file a bug report.  It may be the steps are not exactly correct and a bug report will clearify it for everyone.

Thanks.
In life, you must either "Push, Pull or Get out of the way!"

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
USB Backup
« Reply #17 on: March 21, 2007, 04:35:23 PM »
Quote from: "byte"

There is no backup size limit if you are using the USB backup within the  console menu.


No, that's not correct. The size limit will depend on what file system is used on the backup device. The backup procedure doesn't create the file system.

Offline benny

  • **
  • 22
  • +0/-0
    • http://www.andesigns.com.au
USB Backup
« Reply #18 on: March 22, 2007, 02:50:50 AM »
Hi thanks for that

I tried it and no joy the option was not presented at boot

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
USB Backup
« Reply #19 on: March 22, 2007, 03:55:19 AM »
Quote from: "benny"

I tried it and no joy the option was not presented at boot


The restore option is only presented at first bootup after install.

Offline benny

  • **
  • 22
  • +0/-0
    • http://www.andesigns.com.au
USB Backup
« Reply #20 on: March 22, 2007, 02:38:33 PM »
Thanks Charlie
Then that poses a catch 22 as I need to install 7.1 and then boot to install the updates for 7.1.2 given that scenario I loose the opportunity to restore. I did read a post about creating a iso with the latest updates but thats most likely beyond my knowlege. Other option is to wait for 7.2 release and pray

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
USB Backup
« Reply #21 on: March 22, 2007, 02:47:13 PM »
Quote from: "benny"

Then that poses a catch 22 as I need to install 7.1 and then boot to install the updates for 7.1.2 given that scenario I loose the opportunity to restore.


Try:

config set PasswordSet no
signal-event reboot

Offline benny

  • **
  • 22
  • +0/-0
    • http://www.andesigns.com.au
USB Backup
« Reply #22 on: March 25, 2007, 05:34:26 AM »
Hi Charlie
Thanks for your reply, that worked ok and forced the system to ask for the backup but what happens is it cant find the usb drive. Not sure what to do with it now.

Thanks for your patience