Wayne Davison wrote:
On Fri, Jan 20, 2006 at 07:30:00PM +0100, Christophe LYON wrote:
My original command was:
rsync -aR --exclude=dirb --exclude-deleted dira dirb /tmp
I assumed the -R was unneeded because dira and dirb have no path
information. If that info was elided, then things may
On Mon, Jan 23, 2006 at 01:06:03PM +0100, Christophe LYON wrote:
However, I don't understand well you last comment (rsync only deletes
in directories that it sends).
Let's look at the man-page:
--delete
This tells rsync to delete extraneous files from the receiving side
(ones that
Hi all,
I have been using rsync to copy multiple dirs, eg:
rsync -aR dira dirb /tmp
Now, I no longer want to copy dirb, and I want it to be removed on the
remote side, and I cannot figure how to achieve this.
I tried:
rsync -aR --exclude=dirb --exclude-deleted dira dirb /tmp
but this has
On Fri, Jan 20, 2006 at 03:33:06PM +0100, Christophe LYON wrote:
rsync -avn --exclude=dirb --delete-excluded test-rsync/ /tmp
but in this particular case, it tries to remove many things in /tmp
which is obviously populated with many files ;-)
That command tells rsync to make the /tmp dir
There are several solutions, and which one is right for you depends on
how new your rsync version is. For instance, a way that works with any
rsync version is to copy from an empty dir to get rsync to do a
deletion:
mkdir empty-directory
rsync -av --delete --include=/dirb --exclude='*'
On Fri, Jan 20, 2006 at 07:30:00PM +0100, Christophe LYON wrote:
My original command was:
rsync -aR --exclude=dirb --exclude-deleted dira dirb /tmp
I assumed the -R was unneeded because dira and dirb have no path
information. If that info was elided, then things may become much more