Created directory on origin server that was causing an error for rsync

This commit is contained in:
Ken Fallon 2025-05-08 17:54:21 +02:00
parent ce929988e7
commit 01422d0bd7

View File

@ -84,13 +84,6 @@ function program_checks() {
fi
done
if ${force_overwrite}
then
echo_debug "The setting \"force_overwrite\" is set to true, so files will be overwritten."
else
echo_debug "The setting \"force_overwrite\" is set to false, so when files exist the program will skip files if they exist."
fi
}
#################################################
@ -1311,6 +1304,12 @@ function copy_files_to_origin_server() {
echo_error "Failed to transfer missing file \"${this_file}\"."
ls -al "${this_file}"
fi
if [ "$( ssh rsync.net ls hpr/eps/hpr${ep_num}/ 2>/dev/null | wc -l )" -eq "0" ]
then
echo_debug "Creating \"hpr/eps/hpr${ep_num}/\" on the origin server."
ssh rsync.net mkdir hpr/eps/hpr${ep_num}/ 2>/dev/null
fi
rsync --archive --quiet --partial --progress "${this_file}" rsync.net:hpr/eps/hpr${ep_num}/${this_asset}
@ -1573,41 +1572,41 @@ do
done
program_checks # We know that all the programs and variables are set
get_working_dir $@ # We have a working directory and a valid json file
get_episode_metadata $@ # We have all the metadata we need to process the show.
extract_images_brute_force # We have extracted the images by brute force
media_checks #
generate_initial_report # Generate Initial Report for review by the Janitors
manual_shownotes_review # Janitors review audio and shownote. Skips if done.
post_show_to_hpr_db # Posts the episode to HPR. Skips if it is already posted.
create_tts_summary # Generate text to speech summary
generate_intro # Generate Intro from the intro theme with overlay of a lead in silence then the tts summary
generate_parent_audio # Combines the intro, the episode, and the outro to a final cut.
generate_derived_media # Generate the flac wav mp3 ogg opus files
generate_show_transcript
generate_final_report
manual_final_review
register_assets
# program_checks # We know that all the programs and variables are set
#
# get_working_dir $@ # We have a working directory and a valid json file
#
# get_episode_metadata $@ # We have all the metadata we need to process the show.
#
# extract_images_brute_force # We have extracted the images by brute force
#
# media_checks #
#
# generate_initial_report # Generate Initial Report for review by the Janitors
#
# manual_shownotes_review # Janitors review audio and shownote. Skips if done.
#
# post_show_to_hpr_db # Posts the episode to HPR. Skips if it is already posted.
#
# create_tts_summary # Generate text to speech summary
#
# generate_intro # Generate Intro from the intro theme with overlay of a lead in silence then the tts summary
#
# generate_parent_audio # Combines the intro, the episode, and the outro to a final cut.
#
# generate_derived_media # Generate the flac wav mp3 ogg opus files
#
# generate_show_transcript
#
# generate_final_report
#
# manual_final_review
#
# register_assets
copy_files_to_origin_server
copy_derived_files_to_borg
# copy_derived_files_to_borg
# upload_to_the_internet_archive
@ -1615,3 +1614,10 @@ copy_derived_files_to_borg
echo_debug "The End"
exit 0
# if ${force_overwrite}
# then
# echo_debug "The setting \"force_overwrite\" is set to true, so files will be overwritten."
# else
# echo_debug "The setting \"force_overwrite\" is set to false, so when files exist the program will skip files if they exist."
# fi