From c2a3383eb2d75ad9e13eb990513af1b6ecdde658 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 15 Sep 2024 17:15:03 -0300 Subject: Feat: android-backup-mtp: exclude music folder --- android-backup-mtp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android-backup-mtp b/android-backup-mtp index 9eda7b6..0cf04e6 100755 --- a/android-backup-mtp +++ b/android-backup-mtp @@ -18,6 +18,7 @@ PROFILE="$2" SHARED="$HOME/temp/shared/$PHONE/$PROFILE" SYNCED="$HOME/sync/$PHONE/$PROFILE" COMMANDS="go-mtpfs rsync fusermount" +EXCLUDES="--exclude=Music" # Syntax check if [ -z "$PROFILE" ]; then @@ -50,5 +51,5 @@ done # Backup go-mtpfs $SHARED & -time rsync -av --delete $SHARED/ $SYNCED/ +time rsync -av --delete $EXCLUDES $SHARED/ $SYNCED/ fusermount -u $SHARED -- cgit v1.2.3