aboutsummaryrefslogtreecommitdiff
path: root/android-backup-mtp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-09-15 17:15:03 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-09-15 17:15:03 -0300
commitc2a3383eb2d75ad9e13eb990513af1b6ecdde658 (patch)
treef5faea5c51eb5d9b8a4cae2831ff4007e1833afa /android-backup-mtp
parent1d5630d6c4d45d8ab2954e6c3b11886a4f268317 (diff)
downloadutils-android-c2a3383eb2d75ad9e13eb990513af1b6ecdde658.tar.gz
utils-android-c2a3383eb2d75ad9e13eb990513af1b6ecdde658.tar.bz2
Feat: android-backup-mtp: exclude music folder
Diffstat (limited to 'android-backup-mtp')
-rwxr-xr-xandroid-backup-mtp3
1 files changed, 2 insertions, 1 deletions
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