Skip to content

Instantly share code, notes, and snippets.

@amorino
Created February 16, 2018 16:17
Show Gist options
  • Select an option

  • Save amorino/8934aee48d89143ad3f78084745f8766 to your computer and use it in GitHub Desktop.

Select an option

Save amorino/8934aee48d89143ad3f78084745f8766 to your computer and use it in GitHub Desktop.
Backup Let's Encrypt folder
# Backup
tar zcvf /tmp/letsencrypt_backup_$(date +'%Y-%m-%d_%H%M').tar.gz /etc/letsencrypt
# Check content
tar tvf /tmp/letsencrypt_backup_2016-10-23_0114.tar.gz
# In case of disaster
tar zxvf /tmp/letsencrypt_backup_2016-10-23_0114.tar.gz -C /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment