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.

Revisions

  1. Erick Bazán created this gist Feb 16, 2018.
    6 changes: 6 additions & 0 deletions letsencrypt.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    # 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 /