blob: 743acc5ae0d369d6cdd65e66db2d14d0eacf6a78 (
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/' two.txt'
cd ..
$rsync --exclude ' two.txt' -a dir1/ dir3
compare_trees dir2 dir3
|