
first follow groovix-server-installation-from-scratch.txt

then sync db ( mysqldump and restore )

copy in custom dashboard config.php and header.php

sync stats:
rsync -a /var/backups/groovix/snapshots/old-server/var/www/html/groovix/gxrelease/custom/ /var/www/html/groovix/gxrelease/custom/
rsync -a /var/backups/groovix/snapshots/old-server/var/www/html/groovix/stats/custom/ /var/www/html/groovix/stats/custom/

most of groovix-server/var/www/html/groovix/common/doc/customer-server-moving-to-new-server.txt is still applicable



--------------------------------------------------------------------------------------------------------------------------------------------
https ssl letsencrypt :
# old server
sudo tar czf letsencrypt-backup.tar.gz /etc/letsencrypt

# transfer over
scp letsencrypt-backup.tar.gz user@newserver:/tmp/

# new server
sudo tar xzf /tmp/letsencrypt-backup.tar.gz -C /
scp /root/private/groovix/google-dns/apl-groovix-net-efcb739a86b3.json user@newserver:/tmp/
# then on new server, move into place with correct restrictive permissions:
sudo mkdir -p /root/private/groovix/google-dns
sudo mv /tmp/apl-groovix-net-efcb739a86b3.json /root/private/groovix/google-dns/
sudo chmod 600 /root/private/groovix/google-dns/apl-groovix-net-efcb739a86b3.json

sudo apt install certbot python3-certbot-dns-google

--------------------------------------------------------------------------------------------------------------------------------------------

