Just delete extraneous files, without updating other changes?

Bryan Pliatsios bryan.pliatsios at wellcom.com.au
Thu Feb 16 19:06:00 MST 2012

  thanks so much, I should have read the man page closer:

--existing, --ignore-non-existing
This tells rsync to skip creating files (including directories) that do not exist yet on the destination. If this option is combined with the --ignore-existing option, no files will be updated (which can be useful if all you want to do is delete extraneous files).

   I'm really embarrased. Thanks for not rtfm-ing me.


On 17/02/2012, at 12:57 PM, Kevin Korb wrote:

> Hash: SHA1
> Actually, you want --delete --ignore-non-existing and --ignore-existing
> On 02/16/12 20:55, Kevin Korb wrote:
>> You want --ignore-existing
>> On 02/16/12 20:36, Bryan Pliatsios wrote:
>>> Hello all,
>>> I thought --recursive  and  --delete-before  might be an option
>>> and I can quit rsync when it begins the updates, but the
>>> incremental recursive scanning is disabled and this will
>>> certainly crash rsync as it was before moving to v3.x (too many
>>> files).
>>> I have no experience with --write-batch but I wonder if it's 
>>> safe/sane to edit the resulting batch output file, or by doing a 
>>> --dry-run | grep "deleting" and fire that list thru rm. Other 
>>> thoughts?
>>> Bryan
> - -- 
> ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
> 	Kevin Korb			Phone:    (407) 252-6853
> 	Systems Administrator		Internet:
> 	FutureQuest, Inc.		Kevin at FutureQuest.net  (work)
> 	Orlando, Florida		kmk at sanitarium.net (personal)
> 	Web page:			http://www.sanitarium.net/
> 	PGP public key available on web site.
> ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
> Version: GnuPG v2.0.17 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> UkQAoOprJehXSe6Wc5x1x/gP8ENAHJSX
> =huox
> -- 
> 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

Bryan Pliatsios  Senior System Administrator – wellcom group headquarters 
P +61 3 9946 8000 | M 0418 992 775 
E bryan.pliatsios at wellcom.com.au | W http://www.wellcom.com.au
wellcom group limited 870 lorimer street port melbourne vic australia 3207
Please consider our environment before you print this email
IMPORTANT INFORMATION __________________________________________________________________
This correspondence is for the named person's use only. It may contain confidential or legally privileged information or both. No confidentiality or privilege is waived or lost by any transmission error. If you receive this correspondence in error, please immediately delete it from your system and notify the sender. You must not disclose, copy or rely on any part of this correspondence if you are not the intended recipient.
Any opinions expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the opinions of Wellcom Group Limited.
Neither the sender nor Wellcom warrants that any communication via the Internet is free of errors, viruses, interception or interference. Information is distributed without warranties of any kind. __________________________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20120217/d2365780/attachment.html>

More information about the rsync mailing list