scripts/sync: fix Books/ synchronization (cant sync whole folder because of persistence details
This commit is contained in:
@@ -57,9 +57,14 @@ syncHost() {
|
|||||||
(moby)
|
(moby)
|
||||||
# copy photos/screenshots from moby to desko:
|
# copy photos/screenshots from moby to desko:
|
||||||
rsync -arv --exclude servo-macros "$mobyHome/Pictures/" "$deskoHome/Pictures/from/moby/"
|
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)
|
# copy books from servo to moby; delete old/untracked ones, but keep KOreader state files (sdr)
|
||||||
ifExists /mnt/servo/media/Books/Books \
|
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
|
# copy music
|
||||||
ifExists /mnt/servo/media/Music/Various.Artists \
|
ifExists /mnt/servo/media/Music/Various.Artists \
|
||||||
sane-sync-music --compat /mnt/servo/media/Music "$mobyHome/Music" "${syncFlags[@]}"
|
sane-sync-music --compat /mnt/servo/media/Music "$mobyHome/Music" "${syncFlags[@]}"
|
||||||
|
Reference in New Issue
Block a user