# 循序Rsync

```
FAIL=0
for i in a b c d e
do
echo $i
dir=/srv/dev-disk-by-label-data/minio/${i}
mkdir $dir
#你要做的rsync
rsync -avP /srv/dev-disk-by-label-data/minio/omv/miniserver64.vdi $dir/ &
echo "Wait job: `jobs -p`"
wait
done
# 對每一個子行程執行 wait
for job in `jobs -p`
do
  echo
  echo "Wait job: ${job}"
  wait $job || let FAIL+=1
done
# 檢查失敗工作數
if [ $FAIL -eq 0 ]; then
  echo
  echo "All jobs are done"
else
  echo
  echo "${FAIL} jobs fail!"
fi

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kawsing.gitbook.io/opensystem/andoid-shou-ji/untitled/xun-xu-rsync.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
