scripts/sync: fix Books/ synchronization (cant sync whole folder because of persistence details

This commit is contained in:
2024-11-08 10:27:19 +00:00
parent 62de15d418
commit b6a368419e

View File

@@ -57,9 +57,14 @@ syncHost() {
(moby)
# copy photos/screenshots from moby to desko:
rsync -arv --exclude servo-macros "$mobyHome/Pictures/" "$deskoHome/Pictures/from/moby/"
ifExists /mnt/servo/media/Books/Audiobooks \
rsync -arv --delete /mnt/servo/media/Books/Audiobooks/ "$mobyHome/Books/Audiobooks/"
# copy books from servo to moby; delete old/untracked ones, but keep KOreader state files (sdr)
ifExists /mnt/servo/media/Books/Books \
rsync -arv --delete --exclude '*.sdr' /mnt/servo/media/Books/ "$mobyHome/Books/"
rsync -arv --delete --exclude '*.sdr' /mnt/servo/media/Books/Books/ "$mobyHome/Books/Books/"
# TODO: recover servo Books/Visual collection, and then re-enable syncing
# ifExists /mnt/servo/media/Books/Visual \
# rsync -arv --delete --exclude '*.sdr' /mnt/servo/media/Books/Books/ "$mobyHome/Books/Visual/"
# copy music
ifExists /mnt/servo/media/Music/Various.Artists \
sane-sync-music --compat /mnt/servo/media/Music "$mobyHome/Music" "${syncFlags[@]}"