Re: Exclude and delete or not delete

2018-12-05 Thread Fabian Cenedese via rsync
>You need to switch to filters where you have the additional options >hide, show, risk, and protect. See the filter rules section of man rsync. Thanks for the hint. Though I've been using rsync for years this part has somehow escaped me. I've read up on the filters and they do what I need. The d

Re: Exclude and delete or not delete

2018-12-04 Thread Kevin Korb via rsync
You need to switch to filters where you have the additional options hide, show, risk, and protect. See the filter rules section of man rsync. On 12/4/18 8:36 AM, Fabian Cenedese via rsync wrote: > Hello > > I'm looking for a way to exclude and delete some items but not delete >

Re: Exclude and delete or not delete

2018-12-04 Thread Fabian Cenedese via rsync
>> I'm looking for a way to exclude and delete some items but not delete >> other items. Use case: >> >> I'm on Windows where there are folders like recycle.bin and system >> volume information on every drive. I can exclude them while backing >> up

Re: Exclude and delete or not delete

2018-12-04 Thread Andrew McGlashan via rsync
Hi, On 5/12/18 12:36 am, Fabian Cenedese via rsync wrote: > I'm looking for a way to exclude and delete some items but not delete > other items. Use case: > > I'm on Windows where there are folders like recycle.bin and system > volume information on every drive. I can e

Exclude and delete or not delete

2018-12-04 Thread Fabian Cenedese via rsync
Hello I'm looking for a way to exclude and delete some items but not delete other items. Use case: I'm on Windows where there are folders like recycle.bin and system volume information on every drive. I can exclude them while backing up my data drive. But I now also have other da

Re: --exclude and --delete

2004-02-25 Thread andrew
John Van Essen wrote: rsync -av --exclude "/user/profile/" --delete /home/user [EMAIL PROTECTED]:/home Since there is no trailing slash on '/home/user', the sender root is at '/home/', so the exclude pattern is correct in that case. But the receiver path is '/home', so the root for building the

Re: --exclude and --delete

2004-02-25 Thread andrew
tion. Now the profile directories on the sender and receiver are the same. Subsequent calls to rsync, with the --exclude and --delete options, now behave as expected. profile/ is excluded from both the copy and the delete. Is this the expected behaviour? Does rsync need to 'know' about

Re: --exclude and --delete

2004-02-25 Thread John Van Essen
On Thu, 26 Feb 2004, andrew <[EMAIL PROTECTED]> wrote: > > Paul Slootman wrote: >> On Wed 25 Feb 2004, andrew wrote: >> >>>rsync -av --exclude "/user/profile/" --delete /home/user [EMAIL PROTECTED]:/home >>> >>>This works as I expect, sender:/home/user/profile/ is not copied, except >>>that recei

Re: --exclude and --delete

2004-02-25 Thread andrew
Paul Slootman wrote: On Wed 25 Feb 2004, andrew wrote: rsync -av --exclude "/user/profile/" --delete /home/user [EMAIL PROTECTED]:/home This works as I expect, sender:/home/user/profile/ is not copied, except that receiver:/home/user/profile/ is deleted. Hmm, wouldn't the exclude need to be

Re: --exclude and --delete

2004-02-25 Thread Paul Slootman
On Wed 25 Feb 2004, andrew wrote: > > rsync -av --exclude "/user/profile/" --delete /home/user [EMAIL PROTECTED]:/home > > This works as I expect, sender:/home/user/profile/ is not copied, except > that receiver:/home/user/profile/ is deleted. Hmm, wouldn't the exclude need to be "/profile", as

Re: --exclude and --delete

2004-02-24 Thread Wayne Davison
On Wed, Feb 25, 2004 at 02:32:47PM +1100, andrew wrote: > rsync -av --exclude "/user/profile/" --delete /home/user [EMAIL PROTECTED]:/home > > This works as I expect, sender:/home/user/profile/ is not copied, except > that receiver:/home/user/profile/ is deleted. I can't duplicate this. If I ma

--exclude and --delete

2004-02-24 Thread andrew
Hi, I am experiencing a problem when using rsync (2.6.0) and I was after some clarification. I wish to sync two directories except for a specified sub-directory that exists in both the sending and receiving directories. So, rsync -av --exclude "/user/profile/" --delete /home/user [EMAIL PROTE

Re: --exclude and --delete-exclude problem

2003-01-09 Thread Dave Dykstra
On Thu, Jan 09, 2003 at 01:20:08AM -0400, Carlos Molina wrote: > Hi. > > I'm trying to accomplish the following ; > > 1) First, I did a rsync for a file, like this > /usr/bin/rsync -lptgoD --delete --rsh=/usr/bin/ssh -R --delete-excluded > -vv [EMAIL PROTECTED]:/usr/local/src/* /tmp/localhost/da

--exclude and --delete-exclude problem

2003-01-08 Thread Carlos Molina
Hi. I'm trying to accomplish the following ; 1) First, I did a rsync for a file, like this /usr/bin/rsync -lptgoD --delete --rsh=/usr/bin/ssh -R --delete-excluded -vv [EMAIL PROTECTED]:/usr/local/src/* /tmp/localhost/daily.0 If I did a ls -la to the destination dir (/tmp/localhost/daily.0/usr/

Re: Syntax for using rsync options --exclude and --delete!

2002-11-20 Thread jw schultz
On Wed, Nov 20, 2002 at 02:19:20PM -0500, [EMAIL PROTECTED] wrote: > Hello All, > > I was wondering if anyone has a viable syntax solution for using rsync with > the --exclude and --delete option. > > I have been using the rsync process to backup certain files and filesys

Re: Syntax for using rsync options --exclude and --delete!

2002-11-20 Thread Max Bowsher
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I was wondering if anyone has a viable syntax solution for using > rsync with the --exclude and --delete option. ... > Current Syntax: > rsync -vaox --exclude ".snapshot" * [destination] > NOTE: Current directory is s

Syntax for using rsync options --exclude and --delete!

2002-11-20 Thread Leslie_Branch
Hello All, I was wondering if anyone has a viable syntax solution for using rsync with the --exclude and --delete option. I have been using the rsync process to backup certain files and filesystems for ease of recovery in the event of unexpected downtime on the primary. I recently noticed that