including git annex archives into backup

This commit is contained in:
2024-02-14 18:14:47 +01:00
parent 9db4d5758e
commit 6528fc625c

View File

@@ -48,6 +48,7 @@ borg create --progress --stats --exclude-caches \
--exclude $HOME/.local/Steam \ --exclude $HOME/.local/Steam \
--exclude $HOME/.local/share/Steam \ --exclude $HOME/.local/share/Steam \
--exclude $HOME/Audio \ --exclude $HOME/Audio \
--exclude $HOME/nas \
$ARCHIVE $SRC && if ! $LOCAL; then date +%s > $HOME/.lastbak; fi $ARCHIVE $SRC && if ! $LOCAL; then date +%s > $HOME/.lastbak; fi
@@ -78,4 +79,11 @@ then
cd / cd /
udisksctl unmount -b "/dev/disk/by-label/$DISK" udisksctl unmount -b "/dev/disk/by-label/$DISK"
udisksctl lock -b "/dev/disk/by-partlabel/$DISK" udisksctl lock -b "/dev/disk/by-partlabel/$DISK"
else
echo "Backing up Audo archive..."
cd "$HOME/Audio"
git annex copy --to origin > /dev/null
echo "Backing up Photo archive..."
cd "$HOME/Photos"
git annex copy --to origin > /dev/null
fi fi