added audio repo in backup script
This commit is contained in:
@@ -47,6 +47,7 @@ borg create --progress --stats --exclude-caches \
|
||||
--exclude $HOME/tmp \
|
||||
--exclude $HOME/.local/Steam \
|
||||
--exclude $HOME/.local/share/Steam \
|
||||
--exclude $HOME/Audio \
|
||||
$ARCHIVE $SRC && if ! $LOCAL; then date +%s > $HOME/.lastbak; fi
|
||||
|
||||
|
||||
@@ -63,9 +64,14 @@ then
|
||||
echo "backing up Photo archive..."
|
||||
cd "/run/media/$USER/$DISK/photos"
|
||||
git annex sync
|
||||
set +e
|
||||
# set +e
|
||||
git annex mirror --from=origin
|
||||
# set -e
|
||||
git annex sync
|
||||
echo "backing up Audio archive..."
|
||||
cd "/run/media/$USER/$DISK/audio"
|
||||
git annex sync
|
||||
git annex mirror --from=origin
|
||||
set -e
|
||||
git annex sync
|
||||
cd /
|
||||
udisksctl unmount -b "/dev/disk/by-label/$DISK"
|
||||
|
||||
Reference in New Issue
Block a user