Ticket #50350: rsync-bug-reproduce.sh

File rsync-bug-reproduce.sh, 497 bytes (added by cameron.layne@…, 9 years ago)
Line 
1#!/bin/bash
2
3REMOTE='moria:~/tmp/rsync-bugtest/sample-data'
4DEST='.'
5
6# Clean up
7rm -rf $DEST/sample-data
8
9echo 
10echo "Successful case"
11echo "-------------------"
12rsync -aP $REMOTE $DEST
13
14# Clean up
15rm -rf $DEST/sample-data
16
17echo 
18echo "Now the error"
19echo "-------------------"
20rsync -aXP $REMOTE $DEST
21
22
23#rsync $OPTIONS $REMOTE $DEST > >(tee rsync-out.txt) 2> >(tee rsync-errors.txt >&2)
24
25# See stdout+stderr output and split to log files
26# command > >(tee stdout.log) 2> >(tee stderr.log >&2)
27