scripts/sync: sync to flowy

This commit is contained in:
2025-06-02 08:46:14 +00:00
parent 72f4f6b1a0
commit 4d3005ca5d

View File

@@ -49,6 +49,7 @@ sync_music() {
local host=$1 local host=$1
shift shift
local deskoHome=$(homeMountFor desko) local deskoHome=$(homeMountFor desko)
local flowyHome=$(homeMountFor flowy)
local lappyHome=$(homeMountFor lappy) local lappyHome=$(homeMountFor lappy)
local mobyHome=$(homeMountFor moby) local mobyHome=$(homeMountFor moby)
case $host in case $host in
@@ -56,6 +57,10 @@ sync_music() {
ifExists /mnt/servo/media/Music/Various.Artists \ ifExists /mnt/servo/media/Music/Various.Artists \
sane-sync-music --compat /mnt/servo/media/Music "$deskoHome/Music" "$@" sane-sync-music --compat /mnt/servo/media/Music "$deskoHome/Music" "$@"
;; ;;
(flowy)
ifExists /mnt/servo/media/Music/Various.Artists \
sane-sync-music --compat /mnt/servo/media/Music "$flowyHome/Music" "${syncFlags[@]}"
;;
(lappy) (lappy)
ifExists /mnt/servo/media/Music/Various.Artists \ ifExists /mnt/servo/media/Music/Various.Artists \
sane-sync-music --compress --compat /mnt/servo/media/Music "$lappyHome/Music" "${syncFlags[@]}" sane-sync-music --compress --compat /mnt/servo/media/Music "$lappyHome/Music" "${syncFlags[@]}"
@@ -73,6 +78,7 @@ sync_books() {
local host="$1" local host="$1"
local deskoHome=$(homeMountFor desko) local deskoHome=$(homeMountFor desko)
local lappyHome=$(homeMountFor lappy) local lappyHome=$(homeMountFor lappy)
local flowyHome=$(homeMountFor flowy)
local mobyHome=$(homeMountFor moby) local mobyHome=$(homeMountFor moby)
case $host in case $host in
(moby) (moby)
@@ -93,6 +99,7 @@ sync_photos() {
local host=$1 local host=$1
local deskoHome=$(homeMountFor desko) local deskoHome=$(homeMountFor desko)
local lappyHome=$(homeMountFor lappy) local lappyHome=$(homeMountFor lappy)
local flowyHome=$(homeMountFor flowy)
local mobyHome=$(homeMountFor moby) local mobyHome=$(homeMountFor moby)
case $host in case $host in
(desko) (desko)
@@ -114,12 +121,12 @@ parseArgs() {
while [[ $# -ge 1 ]]; do while [[ $# -ge 1 ]]; do
local arg=$1 local arg=$1
case $arg in case $arg in
(desko|lappy|moby) (desko|flowy|lappy|moby)
hosts+=("$arg") hosts+=("$arg")
shift shift
;; ;;
(all) (all)
hosts+=(desko lappy moby) hosts+=(desko flowy lappy moby)
shift shift
;; ;;
(pkm|music|books|photos) (pkm|music|books|photos)
@@ -148,7 +155,7 @@ parseArgs() {
passthruArgs+=("$@") passthruArgs+=("$@")
if [[ ${#hosts[@]} -eq 0 ]]; then if [[ ${#hosts[@]} -eq 0 ]]; then
hosts+=(desko lappy moby) hosts+=(desko flowy lappy moby)
fi fi
if [[ ${#targets[@]} -eq 0 ]]; then if [[ ${#targets[@]} -eq 0 ]]; then