I have installed a Chatmail relay. I have a backup of the server. I also have a backup of the local PC’s relay directory from where the installation was done.
Les assume the local PC now explodes spectacularly. The relay keeps smoothly running.
I manage to get a second PC.
What are the exact steps I should take to have again a local PC from where to tune and update my currently running relay?
And what would be the steps If I did not have a backup of the Local PC’s relay directory?
Once you regained root SSH access to the server, all you need is to restore chatmail.ini config and rerun cmdeploy. Usually setting the domain address in default chatmail.ini is enough.
I only have one Chatmail server; I keep safe a backup of my local PC’ relay directory and my SSH keys; A burning meteorite falls on my local PC; I want to have a new local PC from where to keep tuning and updating my running Chatmail server.
So on the new local PC:
git clone https://github.com/chatmail/relay
cd relay
scripts/initenv.sh
scripts/cmdeploy init mychatmaildomain.tld
restore chatmail.ini file from backup
restore SSH keys and check ssh root@mychatmaildomain.tld