#!/bin/bash

umount /mnt/mtp

echo "Make sure all gvfs, gio, kio, kde, mtp dolphin app that may interfere are closed, automate this in the future"
killall dolphin
killall gvfsd
killall gvfsd-fuse
killall kded5

aft-mtp-mount /mnt/mtp &

#echo "once, the phone is connected, can run: rsync -r -t -v --progress -s --ignore-existing '/mnt/ntfs/samsung-1tb/Users/Allen/Music/' '/mnt/mtp/SD card/Documents/Music'"

echo "Using mtp and rsync is slow as fuck, only do this for when all songs are basically already downloaded"
/usr/local/bin/music-backup-to-phone