blob: b92fe66889052d15349d09c21fc63624ed748a16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#! /bin/sh
# testing --exclude basics
. ${tstdir-.}/lib.sh
. ${tstdir-.}/conf.sh
rm -rf dir1 dir2 dir3
# make the copy-from-here tree
mkdir dir1
cd dir1
generate_tree_1
# make the tree we want to compare to
mkdir ../dir2
cd ../dir2
generate_tree_1
# manually delete the file that should be missing after rsync
rm foo/bar/baz/two3.txt' '
cd ..
$rsync --exclude 'two3.txt ' -a dir1/ dir3
compare_trees dir2 dir3
|