including git annex archives into backup
This commit is contained in:
@@ -48,6 +48,7 @@ borg create --progress --stats --exclude-caches \
|
||||
--exclude $HOME/.local/Steam \
|
||||
--exclude $HOME/.local/share/Steam \
|
||||
--exclude $HOME/Audio \
|
||||
--exclude $HOME/nas \
|
||||
$ARCHIVE $SRC && if ! $LOCAL; then date +%s > $HOME/.lastbak; fi
|
||||
|
||||
|
||||
@@ -78,4 +79,11 @@ then
|
||||
cd /
|
||||
udisksctl unmount -b "/dev/disk/by-label/$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
|
||||
|
||||
Reference in New Issue
Block a user