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:
ce055e8
)
Suggest -Z as a good popt alias letter instead of -s.
author
Wayne Davison
<wayned@samba.org>
Wed, 31 Oct 2007 00:51:48 +0000
(
00:51
+0000)
committer
Wayne Davison
<wayned@samba.org>
Wed, 31 Oct 2007 00:51:48 +0000
(
00:51
+0000)
rsync.yo
patch
|
blob
|
blame
|
history
diff --git
a/rsync.yo
b/rsync.yo
index
e836aac
..
df37b18
100644
(file)
--- a/
rsync.yo
+++ b/
rsync.yo
@@
-854,17
+854,17
@@
permissions (while leaving existing files unchanged), make sure that the
bf(--perms) option is off and use bf(--chmod=ugo=rwX) (which ensures that
all non-masked bits get enabled). If you'd care to make this latter
behavior easier to type, you could define a popt alias for it, such as
bf(--perms) option is off and use bf(--chmod=ugo=rwX) (which ensures that
all non-masked bits get enabled). If you'd care to make this latter
behavior easier to type, you could define a popt alias for it, such as
-putting this line in the file ~/.popt (th
is defines the bf(-s
) option,
+putting this line in the file ~/.popt (th
e following defines the bf(-Z
) option,
and includes --no-g to use the default group of the destination dir):
and includes --no-g to use the default group of the destination dir):
-quote(tt( rsync alias -
s
--no-p --no-g --chmod=ugo=rwX))
+quote(tt( rsync alias -
Z
--no-p --no-g --chmod=ugo=rwX))
You could then use this new option in a command such as this one:
You could then use this new option in a command such as this one:
-quote(tt( rsync -a
sv
src/ dest/))
+quote(tt( rsync -a
vZ
src/ dest/))
-(Caveat: make sure that bf(-a) does not follow bf(-
s
), or it will re-enable
-the
"--no-*" options
.)
+(Caveat: make sure that bf(-a) does not follow bf(-
Z
), or it will re-enable
+the
two "--no-*" options mentioned above
.)
The preservation of the destination's setgid bit on newly-created
directories when bf(--perms) is off was added in rsync 2.6.7. Older rsync
The preservation of the destination's setgid bit on newly-created
directories when bf(--perms) is off was added in rsync 2.6.7. Older rsync