1,527 bytes added
, 08:29, 31 May 2012
Move SME Installation by USB Stick Backup Server1.test.local to Server2.test.local
Restore SME Server from USB Stick on old called "Server1.test.local"
<pre>
- login on Console as root
- do Backup to USB Stick or USB HDD
</pre>
<hr>
2.nd possible way compress data by hand to smeserver.tgz do:
Info: this path will be needed:
<pre>
/etc/e-smith/templates-custom
/etc/e-smith/templates-user-custom
/etc/group
/etc/gshadow
/etc/passwd
/etc/samba/secrets.tdb
/etc/samba/smbpasswd
/etc/shadow
/etc/smbpasswd
/etc/ssh
/etc/sudoers
/home/e-smith
/root
/opt
</pre>
<pre>
- login as root
# signal-event pre-backup # to dump all mysql databases to /home/e-smith/db/mysql
# tar -cvzf smeserver.tgz /etc /root /home /opt
</pre>
<hr>
on new fresh Setup called "Server2.test.local"
<pre>
- login as root
# mount /dev/sda1 /mnt (sda1=USB DISK)
# cd mnt
# tar -C / -xvzf smeserver.tgz
# signal-event post-upgrade
# signal-event reboot
</pre>
delete old hosts entrys at database:
show old hosts and copy to textfile:
<pre>
# db hosts show | grep server1 > /old-hosts.txt
script: (hosts-delete.sh)
</pre>
<pre>
db hosts delete server1.test.local (take every server.1.... of old-host.txt)
</pre>
change-hosts.sh
<pre>
d="server2.test.local"
db hosts set $d host
db hosts setprop $d HostType Self
db hosts setprop $d InternalIP ""
db hosts setprop $d ExternalIP ""
db hosts setprop $d MacAddress ""
db hosts setprop $d static yes
db hosts ReverseDNS yes # only on server1.test.local = yes | on server1.domain.de = ""
</pre>