Re: Selective --delete

2014-01-12 Thread Wayne Davison
On Tue, Jan 7, 2014 at 9:08 AM, Ashley M. Kirchner wrote: > I just ran this and it happily deleted the events folder. I did verify > that it gets excluded during the sync portion as files that either exist or > don't exist on either servers did not get synced or deleted, but it did, at > the end,

Re: Selective --delete

2014-01-08 Thread Paul Slootman
On Tue 07 Jan 2014, Ashley M. Kirchner wrote: > On Tue, Jan 7, 2014 at 9:44 AM, Paul Slootman wrote: > > > rsync will not touch files that have been --exclude'ed; unless you also > > specify --delete-excluded . So just specify those LIVE-only files in > > your exclude list. > > > Uh, that hasn't

Re: Selective --delete

2014-01-07 Thread Ashley M. Kirchner
On Tue, Jan 7, 2014 at 9:44 AM, Paul Slootman wrote: > > rsync will not touch files that have been --exclude'ed; unless you also > specify --delete-excluded . So just specify those LIVE-only files in > your exclude list. > > Uh, that hasn't been my experience. I just ran this and it happily dele

Re: Selective --delete

2014-01-07 Thread Paul Slootman
On Tue 07 Jan 2014, Ashley M. Kirchner wrote: > > My issue is with the --delete part. While I want the procedure to delete > extraneous files from the LIVE server when they are removed from the DEV > one, there are a few files on LIVE that do not and will never exist on the > DEV server, however

Selective --delete

2014-01-07 Thread Ashley M. Kirchner
I have two servers which I will refer to as a LIVE and DEV servers. On the LIVE server, I have a script that executes the following rsync command: rsync --links --verbose --progress --archive \ --exclude="=imagebase=" --exclude="events" \ --delete \ rsync://rsyncu...@dev.domain.com/path/on/