using a standard rsync command line, with this as the --exclude-from file: + /*.pst - *.* While this does include only files with a .pst extension, it also includes files without an extension. This means about 5000 files instead of just a handful. Using the --prune-empty-dirs gets rid of the empty directories, but not the files with no extensions. I've tried: + /*.pst - *.* - * and: + /*.pst - *.* - /* and: + /*.pst - *.* - *. but those cause no files to be copied at all, i assume because it's forcing it to exclude all directories. So is there a way to tell rsync to ignore files with no extensions? TIA -- View this message in context: http://www.nabble.com/Excluding-files-with-no-extensions---windows-cygwin-client-tp25976243p25976243.html Sent from the Samba - rsync mailing list archive at Nabble.com.
Steven Monai
2009-Oct-20 15:22 UTC
Excluding files with no extensions - windows cygwin client
dreniarb wrote:> using a standard rsync command line, with this as the --exclude-from file: > > + /*.pst > - *.* > > While this does include only files with a .pst extension, it also includes > files without an extension. This means about 5000 files instead of just a > handful. Using the --prune-empty-dirs gets rid of the empty directories, > but not the files with no extensions. > > I've tried: > > + /*.pst > - *.* > - * > > and: > > + /*.pst > - *.* > - /* > > and: > > + /*.pst > - *.* > - *. > > but those cause no files to be copied at all, i assume because it's forcing > it to exclude all directories. > > So is there a way to tell rsync to ignore files with no extensions?Yes, I think so. Try this: + *.pst + */ - * (Use with --prune-empty-dirs, of course!) -SM --