Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: linuxhelp on September 06, 2008, 03:50:06 PM
-
Hello
is it possible to restore the server without a screen? and CDROM?
perhaps with ssh over local net? (cause server-manager does not
reach the files+rights on disk, something after freshsetup+restore was wrong)
Has anyone made a Setup-USB-Stick of SME SERVER?
Thanks
-
linuxhelp
If referring to the standard sme server backup & restore, a restore should only be done to a freshly installed sme OS.
You will be given the chance to select the backup file location to restore from ONLY the first time you run the OS after a fresh install.
You can select a CD/DVD or a USB drive/stick.
Therefore you will need to perform the restore at the console with a monitor connected.
-
You will be given the chance to select the backup file location to restore from ONLY the first time you run the OS after a
I know that the following doesn't answer the OP's question, but on an existing installation you can run
config delete PasswordSet
config setprop bootstrap-console Run Yes
signal-event reboot
You then will be lead to the configuration console with the option to restore from a backup.
I myself have never made use of it, but I expect it will work.
-
@linuxhelp
A remote restore can be done with (untested, no warranty, may be wrong or incomplete)
/sbin/e-smith/signal-event pre-restore
tar -C / -xzf smeserver.tgz
/sbin/e-smith/signal-event post-upgrade
/sbin/e-smith/signal-event reboot
-
Hi after several test i wasn't able to make a working backup to a external
usb 2.0 disk, the auto-mount of the console do always show that there is
no usb drive, but i can manual mount it perfectly?? whats wrong there?
If i take a 4GB usbstick console will do backup, but the tarfile has errors..
if i copy i back to my second sme server ..
i want to make a second sme server as mirrored server..
-
mweinber
....but on an existing installation you can run
config delete PasswordSet
config setprop bootstrap-console Run Yes
signal-event reboot
That will achieve the purpose of being asked to do a (one off) restore on the next reboot.
The problem with that is there may be existing ibays, users and other configuration which will be retained, and potentially cause confusion and/or data issues, for example, there will be old ibays in the file system but they will not be displayed in server manager etc etc.
You should only restore to a clean (ie empty) newly installed sme operating system
-
mary,
That will achieve the purpose of being asked to do a (one off) restore on the next reboot.
The problem with that is there may be existing ibays, users and other configuration which will be retained, and potentially cause confusion and/or data issues, for example, there will be old ibays in the file system but they will not be displayed in server manager etc etc.
You are right in general. But when you do a restore from a smeserver.tgz a boot time you should end up with a consistant system. I concede that you may have some garbage data (ibays/user homes) which you can either ignore and waste disk space or clean up manually. Correct me if I'm wrong.
Anyway, I would never use that. I prefer rsync based backup&restore like Affa.
-
Hello Michael,
why do you not submit that affa works inside server-manager panel?
might be easier for normal admins (most of them don't like console)
Regards Tom
-
I know that the following doesn't answer the OP's question, but on an existing installation you can run ...
I myself have never made use of it, but I expect it will work.
If there are any users/groups/files added to the system since installation, then the results of the restore will be undefined and probably undesirable. Full restore from backup should only be done on a freshly installed system.
-
I guess nobody can accuse Michael of promoting his own work.....
i want to make a second sme server as mirrored server..
If this is what you are trying to achieve, nothing does it better, easier, quicker, and more reliably than AFFA.
http://wiki.contribs.org/Affa
I take my hat off to you, Mr. Weinberger.
-
Tom,
why do you not submit that affa works inside server-manager panel?
I don't need it. Operating on the console is much more efficient. But feel free to develop a GUI on the top of Affa.
might be easier for normal admins (most of them don't like console)
That is not my experience, except for Win admins.
-
Hello@All
positive feedback
on some free days i was able to restore my used systems
with:
- fresh setup
- copy smeserver.tgz to fresh node
- run as root
# signal-event pre-restore
# tar -C / xzvf smeserver.tgz
#/sbin/e-smith/signal-event post-upgrade
#/sbin/e-smith/signal-event reboot
- after reboot login to admin-console to change IPs
- reboot
- now online :o)
I have tested some different USB-Disks/Sticks and have seen
that external USB-Drives with external Power runs error free,
but some USB-Sticks and USB-Disks powered by USB makes
problems (low voltage/Hal-Daemon problems)
may it be a big problem to add ftp backup to admin-console?
to save smeserver.tgz to a other server?
Don't misunderstand me, the most of "Beginner-Admins" don't like
linux-console use at small companies
I am often asked for a PDF-Manual of SME is there one?
-
Hello@All
positive feedback
on some free days i was able to restore my used systems
with:
- fresh setup
- copy smeserver.tgz to fresh node
- run as root
# tar -C / xzvf smeserver.tgz
#/sbin/e-smith/signal-event post-upgrade
#/sbin/e-smith/signal-event reboot
- after reboot login to admin-console to change IPs
- reboot
- now online :o)
You left out a step. You must run "signal-event pre-restore" before extracting the backup file.
-
Hallo
SORRY!!
i' m gone be blind...
Tom
-
linuxhelp & all
Added here
http://wiki.contribs.org/Backup_server_config#Command_line_manual_Restore_from_USB_drive_or_memory_stick
-
Hi Mary
perfect & thanks!
happy weekend to you all...
-
linuxhelp
Please confirm where exactly you copied the tar file to.
"ie Copy the previously made backup file, smeserver.tgz, to a fresh node"
-
Hi Mary
i made copy to Root not homes!!!
mount /media/usbdisk
cp /media/usbdisk/Backup-date-folder/smeserver.tgz /
###############################################
after a restore the users have to move the smeserver.tgz from :
#mv /media/usbdisk/smeserver.tgz /media/usbdisk/Backupdate-folder/
(cause every backup has the same name, and if users backup different pc to same disk it will be overwritten)
Better, is if the restore is timestamped by the restore skipt?
Must be added to bugs.contrib.org..
-
@Mary
please add to wiki
for restore to a new other Server (newserver.home.net)make..
after reboot delete old DNS Data inside SME
# db host show oldserver.home.net.. to list old entrys!!
and remove old with
db hosts delete oldserver.XXXX.XXX XXX= domains.net mit prename oldserver!!
signal-event post-upgrade
signal-event reboot
ready..
-
please add to wiki
linuxhelp, you can edit the wiki. You do not need to ask Mary to do it for you.
-
Hello,
thanks i didn't know that i can write into it.
One Question, which skript does run if a user select USB-Backup
can i run it with crond? weekly?
Thanks..
update
http://wiki.contribs.org/Backup_server_config#Command_line_manual_Restore_from_USB_drive_or_memory_stick (http://wiki.contribs.org/Backup_server_config#Command_line_manual_Restore_from_USB_drive_or_memory_stick)
-
I have a newly installed SME 7.4 server installed and with installed a USB with smeserver.tgz file and can you tell me line by line how i can reinstall the file to the server. please.
mount /media/CIDHOSTINGB
cp /media/CIDHOSTINGB/smeserver.tgz
at this point I got cp missing destination file
signal-event post-upgrade
signal-event reboot
IF I'm wrong please correct me
-
I have a newly installed SME 7.4 server installed and with installed a USB with smeserver.tgz file and can you tell me line by line how i can reinstall the file to the server. please.
mount /media/CIDHOSTINGB
cp /media/CIDHOSTINGB/smeserver.tgz
at this point I got cp missing destination file
signal-event post-upgrade
signal-event reboot
IF I'm wrong please correct me
mount external disk
cd to the mount point
follow this (http://forums.contribs.org/index.php/topic,42012.msg196982.html#msg196982)
ciao
-
vclcc
Or better still this wiki Howto, which may be the step by step instructions you are asking for in another thread/post
http://wiki.contribs.org/Backup_server_config#Command_line_manual_Restore_from_USB_drive_or_memory_stick