Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #11747
| From | William Unruh <unruh@invalid.ca> |
|---|---|
| Newsgroups | comp.os.linux.misc |
| Subject | Re: rsync: exclude all, then include only specified, wildcard problems.. |
| Date | 2014-08-14 18:07 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <lsitsj$lj8$1@dont-email.me> (permalink) |
| References | <kpsi1n$37d$1@dont-email.me> <87vc59rvk5.fsf@araminta.anjou.terraraq.org.uk> <e234d578-23e3-4d6b-978f-253b4740b52c@googlegroups.com> |
On 2014-08-14, RichieHH <rileyrg@gmail.com> wrote: > On Thursday, June 20, 2013 11:16:42 AM UTC+2, Richard Kettlewell wrote: >> David <david@55952163-3189045.bogus.domain.invalid> writes: >> >> > I am trying to write a shell script to use rsync to sync certain files to >> >> > another location on the same computer. (The files are checked out from a >> >> > subversion repository into the source location and need to be transferred >> >> > to their final location, and have ownership and permission changes.) >> >> > >> >> > Just in case something has inadvertently found its way into the source >> >> > location that shouldn't have (eg, a file that was checked in in the wrong >> >> > place or some other human error), I want to essentially first of all >> >> > exclude everything in the source folder from being synced, and then >> >> > explicitly allow only the folder hierarchies that are supposed to be >> >> > synced. >> >> >> >> That seems like a weird way to do it. Why not just copy the directories >> >> you're interested in, each in a separate call to rsync (or cp)? >> > > because that would be somewhat silly when it can be done in one sweep and you dont need to specifically specify each directory you're interested in. Lookup the --exclude option for rsync. I really do not understand what you want to do, but that might help you figure out for yourself.
Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: rsync: exclude all, then include only specified, wildcard problems.. RichieHH <rileyrg@gmail.com> - 2014-08-14 09:25 -0700 Re: rsync: exclude all, then include only specified, wildcard problems.. William Unruh <unruh@invalid.ca> - 2014-08-14 18:07 +0000 Re: rsync: exclude all, then include only specified, wildcard problems.. Rich <rich@example.invalid> - 2014-08-14 18:20 +0000 Re: rsync: exclude all, then include only specified, wildcard problems.. MarkA <someone@somewhere.invalid> - 2014-08-14 21:53 +0000
csiph-web