|
Lines 21-26
scpclean() {
Link Here
|
| 21 |
mkdir ${DIR} ${DIR2} |
21 |
mkdir ${DIR} ${DIR2} |
| 22 |
} |
22 |
} |
| 23 |
|
23 |
|
|
|
24 |
verbose "$tid: simple copy local file to local file" |
| 25 |
scpclean |
| 26 |
$SCP $scpopts ${DATA} ${COPY} || fail "copy failed" |
| 27 |
cmp ${DATA} ${COPY} || fail "corrupted copy" |
| 28 |
|
| 24 |
verbose "$tid: simple copy local file to remote file" |
29 |
verbose "$tid: simple copy local file to remote file" |
| 25 |
scpclean |
30 |
scpclean |
| 26 |
$SCP $scpopts ${DATA} somehost:${COPY} || fail "copy failed" |
31 |
$SCP $scpopts ${DATA} somehost:${COPY} || fail "copy failed" |
|
Lines 37-42
cp ${DATA} ${COPY}
Link Here
|
| 37 |
$SCP $scpopts ${COPY} somehost:${DIR} || fail "copy failed" |
42 |
$SCP $scpopts ${COPY} somehost:${DIR} || fail "copy failed" |
| 38 |
cmp ${COPY} ${DIR}/copy || fail "corrupted copy" |
43 |
cmp ${COPY} ${DIR}/copy || fail "corrupted copy" |
| 39 |
|
44 |
|
|
|
45 |
verbose "$tid: simple copy local file to local dir" |
| 46 |
scpclean |
| 47 |
cp ${DATA} ${COPY} |
| 48 |
$SCP $scpopts ${COPY} ${DIR} || fail "copy failed" |
| 49 |
cmp ${COPY} ${DIR}/copy || fail "corrupted copy" |
| 50 |
|
| 40 |
verbose "$tid: simple copy remote file to local dir" |
51 |
verbose "$tid: simple copy remote file to local dir" |
| 41 |
scpclean |
52 |
scpclean |
| 42 |
cp ${DATA} ${COPY} |
53 |
cp ${DATA} ${COPY} |
|
Lines 48-53
scpclean
Link Here
|
| 48 |
rm -rf ${DIR2} |
59 |
rm -rf ${DIR2} |
| 49 |
cp ${DATA} ${DIR}/copy |
60 |
cp ${DATA} ${DIR}/copy |
| 50 |
$SCP $scpopts -r ${DIR} somehost:${DIR2} || fail "copy failed" |
61 |
$SCP $scpopts -r ${DIR} somehost:${DIR2} || fail "copy failed" |
|
|
62 |
diff -rN ${DIR} ${DIR2} || fail "corrupted copy" |
| 63 |
|
| 64 |
verbose "$tid: recursive local dir to local dir" |
| 65 |
scpclean |
| 66 |
rm -rf ${DIR2} |
| 67 |
cp ${DATA} ${DIR}/copy |
| 68 |
$SCP $scpopts -r ${DIR} ${DIR2} || fail "copy failed" |
| 51 |
diff -rN ${DIR} ${DIR2} || fail "corrupted copy" |
69 |
diff -rN ${DIR} ${DIR2} || fail "corrupted copy" |
| 52 |
|
70 |
|
| 53 |
verbose "$tid: recursive remote dir to local dir" |
71 |
verbose "$tid: recursive remote dir to local dir" |