Improve speed & robustness of sync_music.sh
This commit is contained in:
@ -8,8 +8,9 @@ destination="$mountpoint/Internal shared storage/Music/"
|
|||||||
mkdir "$mountpoint"
|
mkdir "$mountpoint"
|
||||||
aft-mtp-mount "$mountpoint"
|
aft-mtp-mount "$mountpoint"
|
||||||
|
|
||||||
rsync --archive --delete --info=progress2 "$source" "$destination"
|
rsync --archive --compress --partial --append-verify --delete --info=progress2 "$source" "$destination" &&
|
||||||
|
{
|
||||||
sync
|
sync
|
||||||
fusermount -u "$mountpoint"
|
fusermount -u "$mountpoint"
|
||||||
rmdir "$mountpoint"
|
rmdir "$mountpoint"
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user