Changes

From SME Server
Jump to navigationJump to search
1,715 bytes added ,  05:51, 10 April 2021
no edit summary
Line 16: Line 16:  
|category= Category you want
 
|category= Category you want
 
|tags=backup, restore, contribs
 
|tags=backup, restore, contribs
}}{{WIP box|this is a work in progress, contrib is currently in development. Please follow the bug list at the end of the page.}}
+
}}
    
===Maintainer===
 
===Maintainer===
Line 43: Line 43:     
=== Installation ===
 
=== Installation ===
 +
 +
<tabs container><tab name="For SME 10">
 
  yum --enablerepo=smecontribs install {{#var:smecontribname}}
 
  yum --enablerepo=smecontribs install {{#var:smecontribname}}
 +
</tab>
 +
<tab name="For SME 9">
 +
wget https://viewvc.koozali.org/smecontribs/rpms/smeserver-migratehelper/contribs10/migratehelper.sh -O /usr/bin/migratehelper.sh
 +
</tab>
 +
</tabs>
    
=== Usage and behaviour ===
 
=== Usage and behaviour ===
Line 90: Line 97:     
==== Default backup list ====
 
==== Default backup list ====
'''note we are not including /home/e-smith/{files,shares} and /home/e-smith/db/mysql*/{daily,hourly}'''
+
'''note : we are excluding /home/e-smith/{files,shares} and /home/e-smith/db/mysql*/{daily,hourly}'''
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
/etc/e-smith/templates-custom
 
/etc/e-smith/templates-custom
Line 131: Line 138:     
==== Default exclusions ====
 
==== Default exclusions ====
 +
{{Warning box|When starting this script :
 +
'''/home/e-smith/files
 +
/home/e-smith/shares'''
 +
are '''EXCLUDED''' by default, because we expect a huge amount of user data that you could rsync later after having your new server up and running, and kept the old one up.
 +
This will allow you to be up and running faster than waiting to gzip gigabyte of data, transfer them and ungzip them.
 +
}}
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
/home/e-smith/db/mysql/daily
 
/home/e-smith/db/mysql/daily
Line 231: Line 244:  
#smeserver-webapps-common
 
#smeserver-webapps-common
 
#smeserver-webhosting
 
#smeserver-webhosting
 +
 +
=== Restore ===
 +
First step will be to simply use the console restore with the obtained smeserver.tgz. We expect you handle the transfer either using a USB disk, or by having used sshfs and already mounted one extra partition of your new server to your old to create you archive on.
 +
 +
Second use the configuration console to fixe any changes needed on network card or IP, domain name...
 +
 +
Third you can use the saved list of rpm to try to install your contribs and other missing things
 +
 +
  yum install --enablerepo=smecontribs `cat /root/contribs`
 +
  yum install --enablerepo=smecontribs `cat /root/rpmsextra`
 +
You can also enable the needed repo depending on what you would have : epel, fws, ....
 +
 +
Fourth, you can start a rsync for the missing bits
 +
  rsync -arv root@oldsme:/home/e-smith/files/ibays/ /home/e-smith/files/ibays
 +
  rsync -arv root@oldsme:/home/e-smith/files/shares/ /home/e-smith/files/shares
 +
  rsync -arv root@oldsme:/home/e-smith/files/users/ /home/e-smith/files/users
 +
  rsync -arv root@oldsme:/home/e-smith/files/nextcloud home/e-smith/files/nextcloud
 +
or simply
 +
  rsync -arv root@oldsme:/home/e-smith/files/ /home/e-smith/files
 +
Some might enjoy to get back their old log too
 +
 +
then you should be good to enjoy your new server....
    
=== Uninstall ===
 
=== Uninstall ===
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,249

edits

Navigation menu