Skip to content

Commit

Permalink
use backupdir variable in tar command
Browse files Browse the repository at this point in the history
  • Loading branch information
Lutz Bender committed Sep 27, 2022
1 parent b16403d commit 91c6497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runs/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ backup() {

# create backup file
openwbDebugLog MAIN 1 "creating new backup file: $BACKUPFILE"
sudo tar --exclude="$OPENWBBASEDIR/web/backup" --exclude="$OPENWBBASEDIR/.git" -czf "$BACKUPFILE" "$OPENWBBASEDIR/" "/var/lib/mosquitto/"
sudo tar --exclude="$BACKUPDIR" --exclude="$OPENWBBASEDIR/.git" -czf "$BACKUPFILE" "$OPENWBBASEDIR/" "/var/lib/mosquitto/"
openwbDebugLog MAIN 1 "setting permissions of new backup file"
sudo chown pi:www-data "$BACKUPFILE"
sudo chmod 664 "$BACKUPFILE"
Expand Down

0 comments on commit 91c6497

Please sign in to comment.