Migrate your letsencrypt certbot files
Running your webserver over https is so much easier nowadays thanks to letsencrypt.
How do you move your certificates to a new server? Simply copy your
Just pay attention to preserve the links.
rsync with the
-a option or create a tar archive that you move. If prevent root from
ssh-ing into your server, you can create a tar archive and move that.
joe $ sudo -i root $ tar -cf /etc/letsencrypt /home/joe/letsencrypt.tar
joe $ rsync -ave 'ssh' server1:/home/joe/letsencrypt.tar /home/joe/ joe $ sudo -i root $ cd /etc/ root $ tar -xf /home/joe/letsencrypt.tar .
Now you can test if
root $ certbot --dry-run renew
It will try to obtain a certificate without installing it.