Sorry if this is asked before, but after some searching, with forum search function and Google, I couldn’t locate any clear answer about this issue.
I use Certbot-auto to get a certificate onto my Raspberry Pi, Certbot asked me to backup
/etc/letsencrypt, which I did with the following commands:
cd /etc/letsencrypt sudo tar cvpzf ~/letsencrypt.tar.gz . # On my Windows machine: scp firstname.lastname@example.org:~/letsencrypt.tar.gz ~/letsencrypt.tar.gz # I then exported the file to C drive
So my questions are:
- Is the command for backing up the folder correct?
- If I wipe the server, how do I recover from backup? Do I simply copy the tar back onto Raspberry Pi and extract the files? Would these commands be appropriate to extract the tar?
cd /etc sudo tar xf ~/letsencrypt.tar.gz