Skip to content

Commit

Permalink
only include relevant files
Browse files Browse the repository at this point in the history
  • Loading branch information
benderl committed Dec 19, 2024
1 parent 130af95 commit 34beead
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions runs/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,10 @@ fi
tar --verbose --create \
--file="$BACKUPFILE" \
--directory="$TARBASEDIR/" \
--exclude="$OPENWBDIRNAME/data/backup/*.tar" \
--exclude="$OPENWBDIRNAME/data/log/backup.log" \
--exclude="$OPENWBDIRNAME/.git" \
--exclude "$OPENWBDIRNAME/ramdisk" \
--exclude "__pycache__" \
--exclude "$OPENWBDIRNAME/.pytest_cache" \
"$OPENWBDIRNAME"
"$OPENWBDIRNAME/data/charge_log" \
"$OPENWBDIRNAME/data/daily_log" \
"$OPENWBDIRNAME/data/monthly_log" \
"$OPENWBDIRNAME/data/log/uuid"
echo "adding configuration file"
sudo tar --verbose --append \
--file="$BACKUPFILE" \
Expand All @@ -52,6 +49,7 @@ fi
--file="$BACKUPFILE" \
--directory="/var/lib/" \
"mosquitto/" "mosquitto_local/"
# ToDo: add mosquitto configuration files
echo "adding git information"
git branch --no-color --show-current >"$RAMDISKDIR/GIT_BRANCH"
git log --pretty='format:%H' -n1 >"$RAMDISKDIR/GIT_HASH"
Expand Down

0 comments on commit 34beead

Please sign in to comment.