Displaying 1 result from an estimated 1 matches for "remote_q_fil".
Did you mean:
remote_q_file
files not moved immediately to final destination from temp location after rsync returns with success
2011 Apr 20
4
files not moved immediately to final destination from temp location after rsync returns with success
...of the file that
has to be pulled by the first call is updated and
the cycle continues. In case either of the rsync calls fail, the script
starts with the first rsync call.
<snippet of the script>
while :
do
# get the name of the command file to pull next.
CURR_Q_NUM=get_counter
REMOTE_Q_FILE="${CURR_Q_NUM}.txt"
LOCAL_Q_FILE="${Q_FOLDER}/${CURR_Q_NUM}.txt"
# update the source and destination for rsync client
SRC=$OPT_RSYNC_USER_NAME@
$OPT_RSYNC_DEV_NAME::$RSYNC_Q_MODULE/$REMOTE_Q_FILE
DEST=$LOCAL_Q_FILE
rsync --update \...