Koozali.org: home of the SME Server

Obsolete Releases => SME Server 9.x => Topic started by: trazomtg on May 23, 2018, 06:19:00 PM

Title: Backup restore
Post by: trazomtg on May 23, 2018, 06:19:00 PM
Hi,
i have a smeserver te  of this computer.
i want to do a complete backup
Which method do you advice?
then i'll upgrade tp smeserver 10

thanks
Title: Re: Backup restore
Post by: Stefano on May 23, 2018, 06:40:31 PM
You really don't want to do so
SME10 is still in early alpha stage, so it must not be used in production
Title: Re: Backup restore
Post by: janet on May 24, 2018, 01:28:51 AM
Hi,
i have a smeserver te  of this computer.
i want to do a complete backup
Which method do you advice?
then i'll upgrade tp smeserver 10

thanks

The server manager "backup to workstation" will do it, & select to backup to local USB disk as destination.
This method requires you to configure the same backup job on the sme10 server BEFORE you do a restore..

Also you can do a one off console backup to USB disk. Log in at command line as admin & select backup from the menu, connect the USB only when asked.

You will/should be asked if you want to do a restore near the end of the sme10 install process. DO NOT insert the USB disk until asked or you risk wiping the backup disk & adding it to the hard disk array.

Having said the above please realise that sme 10 is in alpha development & not all things work correctly & may need debugging.
Also there may be security issues.

sme 10 should only be used for testing or in a carefully monitored test/production environment which is NOT mission critical, & then only by an experienced admin.
Title: Re: Backup restore
Post by: ReetP on May 24, 2018, 12:45:36 PM
Alpha = liable to break suddenly without warning and trash all your data. Updates and changed may render it instantly unusable.

Only use for testing and bug reporting
Title: Re: Backup restore
Post by: trazomtg on May 25, 2018, 01:30:25 PM
ok
so if i just want to do a total backup of my server and not upgrade to smeserver, which is your advice about the method to  use?  USB key, remote computer or anything else?,

if i want to use a USB to have a total image of the computer where is installed the SMEServer, how can i dot it?

thanks
T
Title: Re: Backup restore
Post by: ReetP on May 25, 2018, 01:44:18 PM
Have you searched the wik?

A lot of methods are documented there.
Title: Re: Backup restore
Post by: trazomtg on May 25, 2018, 01:48:51 PM
i don't understand where must be plugged the USB key to do a total backup.
is it possible to boot on the USB key to restore the server totally
Title: Re: Backup restore
Post by: ReetP on May 25, 2018, 01:52:36 PM
The usb is plugged into your server to do a backup.

If you need to restore, first you install a clean server, then when asked 'do you want to restore from backup you plug in your usb.

Please read the manual in the wiki where this is explained.
Title: Re: Backup restore
Post by: trazomtg on May 25, 2018, 02:29:06 PM
suppose i have done a total backup on a USB key.
suppose my smeserver is unable to boot.
is it possible to reinstall ALL smeserver system and parameters from my USB key?


Title: Re: Backup restore
Post by: Stefano on May 25, 2018, 02:54:25 PM
I beg your pardon but.. did you take 5 mins to search the forums, read the documentation, check the wiki?

99.99% of your questions have already an answer

https://wiki.contribs.org/SME_Server:Documentation:Administration_Manual:Chapter10

this is not the first time you're (I'd say kindly) asked to read the documentation.
Title: Re: Backup restore
Post by: janet on May 25, 2018, 05:24:59 PM
trazomtg

Please read my post/answer earlier in this thread. It gives you detailed instructions re 2 standard backup & restore methods.

All restores are done to a freshly installed sme server operating system.

You DO NOT do restores to an already configured existing system.

After the restore you must also reinstall any contribs that were previously installed.

Sme server does not have a bare metal backup function to USB disk (ie whole of disk contents).

Note though that a backup to tape does backup all file systems, but a restore from tape does not restore all file systems, only default data & configuration is restored.

Note that sme server does not have a function to create a bootsble USB disk backup.

Please read the Wiki Howto article titled Backup server config (especially section re Backup Concepts towards the end).

If you need to boot a non booting server, you insert the sme server install CD/DVD & do a Rescue boot from that, this is for recovery of data purposes or when attempting to correct the reason the server will not boot, etc.

Note YOU DO NOT DO A RESTORE TO AN EXISTING CONFIGURED INSTALL OF SME SERVER

Title: Re: Backup restore
Post by: trazomtg on May 25, 2018, 06:19:36 PM
Super!! thanks a lot
Title: Re: Backup restore
Post by: trazomtg on May 26, 2018, 10:42:50 AM
to do a backup on remote computer via NFS i have installed nfs-utils on smeserver.
must i install nfs-kernel-server on the smeserver and the client on remote computer?
or must i install nfs-kernel-server on remote computer and client on smeserver computer?

i have no package nfs-server on smeserver.
Title: Re: Backup restore
Post by: ReetP on May 26, 2018, 11:24:44 AM
Why don't you seach the wiki like you have been advised many times?

If you do not help yourself more, people will ignore you.

https://wiki.contribs.org/NFS
Title: Re: Backup restore
Post by: trazomtg on May 26, 2018, 10:59:45 PM
i have not a lot of time to install a backup solution
thanks a lot
T.
Title: Re: Backup restore
Post by: ReetP on May 26, 2018, 11:07:22 PM
And I am holiday.

Thanks
Title: Re: Backup restore
Post by: Stefano on May 27, 2018, 02:34:51 AM
i have not a lot of time to install a backup solution
thanks a lot
T.

OK, enjoy
Title: Re: Backup restore
Post by: trazomtg on May 28, 2018, 10:13:07 AM
hello
i have done backup with NFS on a remote machine
i have a directory "set1" which includes a directoryfull........-dar  and  a file "dar-catalog"

how can i do a restauration?
i don't see the doc on the restoration
thnaks
Title: Re: Backup restore
Post by: Stefano on May 28, 2018, 10:33:38 AM
read here, carefully:

https://wiki.contribs.org/SME_Server:Documentation:Administration_Manual:Chapter10#To_Workstation_or_USB_Drive
Title: Re: Backup restore
Post by: trazomtg on May 29, 2018, 03:48:25 PM
hello,

i succeeded the backup but i'd like to include another directory (/opt)
is it possible and so how to do it?
thanks
Title: Re: Backup restore
Post by: ReetP on May 29, 2018, 04:07:42 PM
i succeeded the backup but i'd like to include another directory (/opt)
is it possible and so how to do it?
thanks

Read. The. Wiki.

I don't have time to help you further.
Title: Re: Backup restore
Post by: janet on May 30, 2018, 12:46:41 AM
trazomtg

Find the links at top to Documentation (3 bars on mobiles).
Look at the
Howto
Also look for
Contribs
under another heading
for lots of answers.
eg this one

https://wiki.contribs.org/Backup_with_dar#Adding.2FExcluding_Directories_and_Files_from_the_backup_list

You need to help yourself as people here will now stop helping you due to your laziness.
Title: Re: Backup restore
Post by: trazomtg on May 31, 2018, 03:26:36 PM
sorry, i haven't found the doc on "adding directories"
thanks
Title: Re: Backup restore
Post by: janet on May 31, 2018, 03:48:22 PM
sorry, i haven't found the doc on "adding directories"
thanks

Seriously are you joking ?
I gave you the URL link in my last post, all you had to do was click on it.
Look at the heading
Adding Files and Directories
Title: Re: Backup restore
Post by: ReetP on May 31, 2018, 04:01:09 PM
<headbang>

Quote
i am an "old" systems and network international consultant and technical directeur for a very big enterprise. I'm now retired and fave plenty of time.
i have skils in Tivoli, Nagios, MRTG ....
others skills in KVM, OpenVPN, Iptables, linux (Fedora, Debian ), Unix (AIX) ...
and some facilites in bash, python and prolog

And I'm a unicorn, and I'm off to graze in the fields.
Title: Re: Backup restore
Post by: trazomtg on May 31, 2018, 09:09:02 PM
hello,
 i wonder whether i could use the "DAR backup" facilities of SMEServer on another computer.
is it possible to install on a computer all the interfac e (and only this interface) of DAR backup?
i use it now and i enjoy really
thanks
Title: Re: Backup restore
Post by: Stefano on May 31, 2018, 10:18:54 PM
Is Google broken in your country?
Title: Re: Backup restore
Post by: TerryF on May 31, 2018, 11:01:14 PM
This would make a good episode/chapter for the BOFH :-)
Title: Re: Backup restore
Post by: ReetP on May 31, 2018, 11:08:27 PM
This would make a good episode/chapter for the BOFH :-)

Just mind the slippery bit near the window sir....
Title: Re: Backup restore
Post by: trazomtg on June 01, 2018, 12:06:04 PM
Sorry but i don't  understand your replies
i am french
Title: Re: Backup restore
Post by: trazomtg on June 01, 2018, 01:05:56 PM
hello,
is my request possible?
thanks
Title: Re: Backup restore
Post by: TerryF on June 01, 2018, 01:25:05 PM
hello,
 i wonder whether i could use the "DAR backup" facilities of SMEServer on another computer.
is it possible to install on a computer all the interfac e (and only this interface) of DAR backup?
i use it now and i enjoy really
thanks


Short answer, No
Title: Re: Backup restore
Post by: trazomtg on June 01, 2018, 01:29:26 PM
i like this kind of response :-P
Title: Re: Backup restore
Post by: trazomtg on June 01, 2018, 01:34:18 PM
so, i'm going to install my backup on another computer.
what is your advice:  backuppc  or  DAR?
thanks
Title: Re: Backup restore
Post by: Stefano on June 01, 2018, 01:56:52 PM
Try both of them, test them, then choose the one you feel more comfortable with
BTW, they are different tools with different aims
Title: Re: Backup restore
Post by: trazomtg on June 01, 2018, 02:04:59 PM
do you think these  solutions are good solutions?
Title: Re: Backup restore
Post by: Stefano on June 01, 2018, 02:14:55 PM
yes, they are, but they are for me.
you must test them to understand how they work and to learn using them, then choose the one you prefer.
nowadays setting up $whatever feature is quite easy.. the hard work is to understand how thing are going to work, to fix them if something goes wrong.
and you're talking about backup
I usually use a custom made script to backup my servers.. or duplicity or rsync.. the point is that you have to test and choose the right tool for you for your environment and skills
Title: Re: Backup restore
Post by: trazomtg on June 01, 2018, 02:44:03 PM
ok!  thanks
Title: Re: Backup restore
Post by: janet on June 01, 2018, 03:45:38 PM
Sorry but i don't  understand your replies
i am french

https://en.wikipedia.org/wiki/Bastard_Operator_From_Hell
Title: Re: Backup restore
Post by: ReetP on June 01, 2018, 03:57:08 PM
https://en.wikipedia.org/wiki/Bastard_Operator_From_Hell

ROFLMAO....
Title: Re: Backup restore
Post by: janet on June 01, 2018, 04:05:11 PM
ROFLMAO....

...or maybe closer to the mark...
https://www.theregister.co.uk/data_centre/bofh/
Title: Re: Backup restore
Post by: Stefano on June 01, 2018, 04:33:19 PM
this is my favourite t-shirt (sorry for bad quality image)
Title: Re: Backup restore
Post by: ReetP on June 01, 2018, 05:33:12 PM
Blimey. It must be Friday :-)