Move SME to new Server
Jump to navigation
Jump to search
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"
- login on Console as root - do Backup to USB Stick or USB HDD
2.nd possible way compress data by hand to smeserver.tgz do:
Info: this path will be needed:
/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
- 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
on new fresh Setup called "Server2.test.local"
- login as root # mount /dev/sda1 /mnt (sda1=USB DISK) # cd mnt # tar -C / -xvzf smeserver.tgz # signal-event post-upgrade # signal-event reboot
delete old hosts entrys at database: show old hosts and copy to textfile:
# db hosts show | grep server1 > /old-hosts.txt script: (hosts-delete.sh)
db hosts delete server1.test.local (take every server.1.... of old-host.txt)
change-hosts.sh
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 = ""