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:
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:
1. Is the command for backing up the folder correct?
2. 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?
sudo tar xf ~/letsencrypt.tar.gz