Skip to content

Commit

Permalink
Update renewAndSendToProxy.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
hamburml committed Jan 19, 2017
1 parent 3dda8c7 commit 5e29786
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion renewAndSendToProxy.sh
Expand Up @@ -39,7 +39,13 @@ done
printf "${RED}/etc/letsencrypt will be backed up as backup-date-time.tar.gz. It's important to know that some files are symbolic links (inside this backup) and they need to be untared correctly.${NC}\n"
cd /etc/letsencrypt
mkdir -p backup
tar -cpz --exclude='./backup' -f ./backup/backup-`date +%Y%m%d_%H%M%S_%Z`-$CERTBOTMODE.tar.gz .
if [ "$CERTBOTMODE" ]; then
tar -cpz --exclude='./backup' -f ./backup/backup-`date +%Y%m%d_%H%M%S_%Z`-$CERTBOTMODE.tar.gz .
else
tar -cpz --exclude='./backup' -f ./backup/backup-`date +%Y%m%d_%H%M%S_%Z`-live.tar.gz .
fi


printf "${RED}Backup created, if you like download the /etc/letsencrypt/backup folder and store it on a safe place!${NC}\n\n"

printf "${GREEN}Thanks for using Docker Flow: Let's Encrypt and have a nice day!${NC}\n\n"

0 comments on commit 5e29786

Please sign in to comment.