rsync 3.1.1: --ignore-missing-args / --delete-missing args problem

2017-04-07 Thread Georgy Fedorov via rsync
Dear All, We sometimes have to replicate large "live" filesystems with many ( sometimes millions, up to few hundred millions ) files on them. ( Copying actively used files is of course a bad idea, but it really helps to keep the delta small, so one final transfer can later save the day. )

Re: rsync 3.1.1: --ignore-missing-args / --delete-missing args problem

2017-04-07 Thread Kevin Korb via rsync
Those options are for handling files/dirs that are specified on the actual command line they have nothing to do with files vanishing while rsync is running. The correct solution is to simply ignore exit code 24. BTW, this is what filesystem snapshots are for. On 04/07/2017 08:58 AM, Georgy

modification times questions

2017-04-07 Thread McDowell, Blake via rsync
How do I transfer just the modification times with rsync? I now the file content is the same but the modification times are different. Is there a way to do this? Every way that I have tried causes the whole file to transfer as well. Thanks -- Please use reply-all for most replies to avoid

RE: modification times questions

2017-04-07 Thread McDowell, Blake via rsync
Thank you! I run --times when I use rsync (I actually use the -a flag) but the times do not transfer over and if I run rsync dryrun with -i I can see that it wants to transfer the files because of times. When I run rsync a second time with your suggestion the times do transfer over. I don't

RE: modification times questions

2017-04-07 Thread McDowell, Blake via rsync
Transferring files to our NAS over fiber. Nothing unusual... From: Kevin Korb [k...@sanitarium.net] Sent: Friday, April 07, 2017 3:08 PM To: McDowell, Blake; rsync@lists.samba.org Subject: Re: modification times questions I have never seen rsync do that.

Re: rsync 3.1.1: --ignore-missing-args / --delete-missing args problem

2017-04-07 Thread Axel Kittenberger via rsync
With this two options on a very live system you may need to take into account this bug as well I reported a while ago: https://bugzilla.samba.org/show_bug.cgi?id=12569 Due to this I'm currently not using --ignore-missing-args / --delete-missing but rather -exclude=* -include=- and a autocreated

Re: modification times questions

2017-04-07 Thread Kevin Korb via rsync
If you are sure the content is correct you can run rsync with both --times and --size-only. This will cause rsync to "fix" the timestamps on files that are the same size on both ends. On 04/07/2017 02:53 PM, McDowell, Blake via rsync wrote: > How do I transfer just the modification times with

Re: modification times questions

2017-04-07 Thread Kevin Korb via rsync
I guess I should also mention that if both trees are local you can use: find . -print -exec touch "/path/to/wrong/times/{}" --reference "{}" \; On 04/07/2017 02:58 PM, Kevin Korb via rsync wrote: > If you are sure the content is correct you can run rsync with both > --times and --size-only. > >

Re: modification times questions

2017-04-07 Thread Kevin Korb via rsync
I have never seen rsync do that. What exactly are you doing? On 04/07/2017 03:07 PM, McDowell, Blake wrote: > Thank you! > > I run --times when I use rsync (I actually use the -a flag) but the times do > not transfer over and if I run rsync dryrun with -i I can see that it wants > to transfer

Re: rsync 3.1.1: --ignore-missing-args / --delete-missing args problem

2017-04-07 Thread Kevin Korb via rsync
Exit code 2 is "Protocol incompatibility". Also, sounds like what you really want is --files-from On 04/07/2017 10:01 AM, Axel Kittenberger via rsync wrote: > With this two options on a very live system you may need to take into > account this bug as well I reported a while ago: > >

Re: rsync 3.1.1: --ignore-missing-args / --delete-missing args problem

2017-04-07 Thread Axel Kittenberger via rsync
> > Also, sounds like what you really want is --files-from > files-from is part of the command. -- 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: