ceph/qa/workunits/misc/multiple_rsync.sh

13 lines
275 B
Bash
Raw Normal View History

#!/bin/sh -ex
rsync -av /usr/ usr.1
rsync -av /usr/ usr.2
# this shouldn't transfer any additional files
echo we should get 4 here if no additional files are transfered
rsync -auv /usr/ usr.1 | tee a
wc -l a | grep 4
rsync -auv /usr/ usr.2 | tee a
wc -l a | grep 4
echo OK