Skip to content

Commit

Permalink
upload-photos: Add NO_EXT
Browse files Browse the repository at this point in the history
  • Loading branch information
cdown committed Dec 7, 2023
1 parent 3f19312 commit ea22f4a
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions bin/upload-photos
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@ if (( SLOW )); then
extra_rclone_args='--transfers 1'
fi

if (( LOCAL_EXT )); then
tmux new-session -d -s "$session_name" \
"$limit_cmd copy-photos-to-ext '$escaped_photo_dir'; echo Done; read"
if (( NO_EXT )); then
tmux new-session -d -s "$session_name" "echo NO_EXT was set"
else
tmux new-session -d -s "$session_name" \
"$limit_cmd rsync --size-only -rvP --mkpath . $host:'/srv/samba/Photos/$escaped_photo_dir'; echo Done; read"
if (( LOCAL_EXT )); then
tmux new-session -d -s "$session_name" \
"$limit_cmd copy-photos-to-ext '$escaped_photo_dir'; echo Done; read"
else
tmux new-session -d -s "$session_name" \
"$limit_cmd rsync --size-only -rvP --mkpath . $host:'/srv/samba/Photos/$escaped_photo_dir'; echo Done; read"
fi
fi

tmux split-window -h -t "$session_name:1" \
Expand Down

0 comments on commit ea22f4a

Please sign in to comment.