Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
56961be
)
Improved the --relative section a little more.
author
Wayne Davison
<wayned@samba.org>
Wed, 3 Aug 2005 01:13:15 +0000
(
01:13
+0000)
committer
Wayne Davison
<wayned@samba.org>
Wed, 3 Aug 2005 01:13:15 +0000
(
01:13
+0000)
rsync.yo
patch
|
blob
|
blame
|
history
diff --git
a/rsync.yo
b/rsync.yo
index
9d2413e
..
918d9bd
100644
(file)
--- a/
rsync.yo
+++ b/
rsync.yo
@@
-502,9
+502,12
@@
dot dir must followed by a slash, so "/foo/." would not be abbreviated.)
(2) For older rsync versions, you would need to use a chdir to limit the
source path. For example, when pushing files:
(2) For older rsync versions, you would need to use a chdir to limit the
source path. For example, when pushing files:
-quote(tt(
cd /foo; rsync -avR bar/baz.c remote:/tmp/
))
+quote(tt(
(cd /foo; rsync -avR bar/baz.c remote:/tmp/)
))
-Or when pulling files (which doesn't work with an rsync daemon):
+(Note that the parens put the two commands into a sub-shell, so that the
+"cd" command doesn't remain in effect for future commands.)
+If you're pulling files, use this idiom (which doesn't work with an
+rsync daemon):
quote(
tt( rsync -avR --rsync-path="cd /foo; rsync" \ )nl()
quote(
tt( rsync -avR --rsync-path="cd /foo; rsync" \ )nl()