4 # Populate with some arbitrary files from the local system. Take
5 # a copy to protect against false fails from system updates during test.
6 export PAYLOAD
=/tmp
/multiple_rsync_payload.$$
7 sudo
cp -r /usr
/lib
/ $PAYLOAD
11 sudo rsync
-av $PAYLOAD payload
.1
12 sudo rsync
-av $PAYLOAD payload
.2
14 # this shouldn't transfer any additional files
15 echo we should get
4 here
if no additional files are transferred
16 sudo rsync
-auv $PAYLOAD payload
.1 |
tee /tmp
/$$
18 wc -l /tmp
/$$ |
grep 4
19 sudo rsync
-auv $PAYLOAD payload
.2 |
tee /tmp
/$$
21 wc -l /tmp
/$$ |
grep 4