Skip to content

Commit 5e29786

Browse files
authored
Update renewAndSendToProxy.sh
1 parent 3dda8c7 commit 5e29786

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

renewAndSendToProxy.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,13 @@ done
3939
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"
4040
cd /etc/letsencrypt
4141
mkdir -p backup
42-
tar -cpz --exclude='./backup' -f ./backup/backup-`date +%Y%m%d_%H%M%S_%Z`-$CERTBOTMODE.tar.gz .
42+
if [ "$CERTBOTMODE" ]; then
43+
tar -cpz --exclude='./backup' -f ./backup/backup-`date +%Y%m%d_%H%M%S_%Z`-$CERTBOTMODE.tar.gz .
44+
else
45+
tar -cpz --exclude='./backup' -f ./backup/backup-`date +%Y%m%d_%H%M%S_%Z`-live.tar.gz .
46+
fi
47+
48+
4349
printf "${RED}Backup created, if you like download the /etc/letsencrypt/backup folder and store it on a safe place!${NC}\n\n"
4450

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

0 commit comments

Comments
 (0)