diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-09-15 17:15:03 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-09-15 17:15:03 -0300 |
commit | c2a3383eb2d75ad9e13eb990513af1b6ecdde658 (patch) | |
tree | f5faea5c51eb5d9b8a4cae2831ff4007e1833afa /android-backup-mtp | |
parent | 1d5630d6c4d45d8ab2954e6c3b11886a4f268317 (diff) | |
download | utils-android-c2a3383eb2d75ad9e13eb990513af1b6ecdde658.tar.gz utils-android-c2a3383eb2d75ad9e13eb990513af1b6ecdde658.tar.bz2 |
Feat: android-backup-mtp: exclude music folder
Diffstat (limited to 'android-backup-mtp')
-rwxr-xr-x | android-backup-mtp | 3 |
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 |