Hi all, is it possible to exclude directories without excluding the files _in_ the directories? I ask because one of the things I do on a nightly basis is do a recursive dry-run against an entire webroot with the size-only option. Very often, all the files themselves will be just fine, but the directories themselves will be listed as needing updated. It would be nice if I could exclude the directories _themselves_ but not the files they contain. Does this make sense? Robert
On Mon, Apr 30, 2007 at 12:14:41PM -0400, Robert Denton wrote:> Very often, all the files themselves will be just fine, but the > directories themselves will be listed as needing updated.I usually use -O (--omit-dir-times) to avoid having directories get listed as needing to be updated (and syncing directory times is not really all that useful anyway). ..wayne..
This works in conjunction with the --size-only option as well. Thanks! Robert On Apr 30, 2007, at 2:14 PM, Wayne Davison wrote:> On Mon, Apr 30, 2007 at 12:14:41PM -0400, Robert Denton wrote: >> Very often, all the files themselves will be just fine, but the >> directories themselves will be listed as needing updated. > > I usually use -O (--omit-dir-times) to avoid having directories get > listed as needing to be updated (and syncing directory times is not > really all that useful anyway). > > ..wayne..
Apparently Analagous Threads
- http as a transport for rsync?
- HTTP encapsulated rsync??
- [Bug 11253] New: --exclude=dir doesn't work with --files-from=
- [Bug 10724] New: rsync 3.1.1 incorrectly creates extra dirs inside --backup-dir on Mac OSX
- [Bug 12378] New: why i cannot exclude dir/files if using option "--files-from"