Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
346402dd
Commit
346402dd
authored
Feb 03, 2005
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the new negated exclude to filter out all non-dirs in a few
of the rsync commands.
parent
44d60d5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
exclude.test
testsuite/exclude.test
+4
-4
No files found.
testsuite/exclude.test
View file @
346402dd
...
...
@@ -129,7 +129,7 @@ rm "$chkdir"/bar/down/to/foo/*.junk
rm "$chkdir"/bar/down/to/home-cvs-exclude
rm "$chkdir"/mid/one-in-one-out
$RSYNC -av --existing --
include='*/
' --exclude='
*
'
"
$fromdir
/"
"
$chkdir
/"
$RSYNC -av --existing --
filter='-! */
'
"
$fromdir
/"
"
$chkdir
/"
# Now, test if rsync excludes the same files, this time with --cvs-exclude
# and --delete-excluded.
...
...
@@ -145,12 +145,12 @@ cp -p "$fromdir"/bar/down/to/foo/*.junk "$chkdir"/bar/down/to/foo
cp -p "$fromdir"/bar/down/to/foo/to "$chkdir"/bar/down/to/foo
$RSYNC -av --existing --delete-excluded \
--include='
*/
' --include='
.
excl
*
' --exclude='
*
' "$fromdir/" "$todir/"
--include='
.excl*' --filter='-! */
' "$fromdir/" "$todir/"
echo retained >"$todir"/bar/down/to/bar/baz/nodel.deep
cp -p "$todir"/bar/down/to/bar/baz/nodel.deep "$chkdir"/bar/down/to/bar/baz
$RSYNC -av --existing --
include='
*/
' --exclude='
*
' "$fromdir/" "$chkdir/"
$RSYNC -av --existing --
filter='
-!
*/
' "$fromdir/" "$chkdir/"
# Now, test if rsync excludes the same files, this time with a merge-exclude
# file.
...
...
@@ -169,7 +169,7 @@ rm "$chkdir"/bar/down/to/bar/.excl2
rm
"
$chkdir
"
/
mid
/.
excl
rm
"
$chkdir
"
/
bar
/
down
/
to
/
bar
/
baz
/
nodel
.
deep
$RSYNC
-
av
--
existing
--
include
=
'*/'
--
exclude
=
'*
'
"
$fromdir
/"
"
$chkdir
/"
$RSYNC
-
av
--
existing
--
filter
=
'-! */
'
"
$fromdir
/"
"
$chkdir
/"
# Finally, try the prior command with --delete-before and --delete-excluded.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment