Skip to content

Commit

Permalink
fix typo that prevents proper writing to logfile for cleanup step
Browse files Browse the repository at this point in the history
  • Loading branch information
peterrus committed Jan 23, 2022
1 parent d77bcf6 commit 48ad958
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions restic_wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ case $ACTION in
echo -e "[wrapper][`date_now`] Starting backup process" &> $LOGFILE

RESTIC_EXCLUDE_FILE=$SCRIPTPATH/$BACKUP_NAME.excludefile
SUCCESS=true
SUCCESS=true

echo -e "\n\n[wrapper][`date_now`] Creating snapshot" &>> $LOGFILE
restic \
Expand All @@ -87,7 +87,7 @@ case $ACTION in
--keep-weekly 8 \
--keep-monthly 6 \
--keep-yearly 5 \
--keep-tag keep
--keep-tag keep \
&>> $LOGFILE || SUCCESS=false

if [[ "$SUCCESS" == "true" ]]; then
Expand Down

0 comments on commit 48ad958

Please sign in to comment.