Restore Chatmail relay operator's local PC

Hi.

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?

Thank you

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.

Let me verify I understand.

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:

  1. git clone https://github.com/chatmail/relay
  2. cd relay
  3. scripts/initenv.sh
  4. scripts/cmdeploy init mychatmaildomain.tld
  5. restore chatmail.ini file from backup
  6. restore SSH keys and check ssh root@mychatmaildomain.tld
  7. scripts/cmdeploy run

Is that correct?

1 Like

cmdeploy init generates default config. If you restore chatmail.ini anyway from a backup, you don’t need to run init.

1 Like