Re: Fwd: [3.1.3] --remove-source-files $SRC/ $SRC/ - erases all files

Sridhar Sarnobat via rsync <[email protected]>
Newsgroups gmane.network.rsync.general
Message-ID <CA+328FbL4Mi5w8KPwBNE8weoYNFKuXCcjH6kS6UnShqBuVn1og@mail.gmail.com>
>
> I think I must be missing something.  If source and dest are the same
> place rsync shouldn't do anything unless it it responding to changes
> happening at the same time.  For example, when I do 'rsync -vain
> --remove-source-files /tmp/ /tmp/' rsync does nothing.
>

Thanks for the response. You are using "-n" / "--no-clobber".

In my case I'm using "-b" / "--backup" (or overwrite). My use case is to
get everything out of the source location, and "--no-clobber" will leave
things behind. So I guess I should refine my issue to "when you're not
using --no-clobber."

Do I have a case here? Or is this erasing both the source and destination a
valid behaviour in my case?

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.