Re: One stage rsync
Olleg [EMAIL PROTECTED] writes: Goswin von Brederlow wrote: That said, what happens when e.g. the rsync stops halfway? I make experiment, kill rsync server on transfer. Does it update the files it already has? No Does it keep the files delayed and resume on the next run? Does it remove the updates and start fresh the next time? Keep files delayed in .~tmp~ subdir by default, don't remove it on error. (IMHO this is bug of rsync.) But on rsync next time don't use it, simple rewrite. -- Olleg Keeping the incomplete file isn't an error. On restart rsync should add the block checksums of the incomplete file to the existing files blocklist and reuse that data. But that might make thinks more complicated. MfG Goswin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: One stage rsync
Olleg [EMAIL PROTECTED] writes: Hi all. I am working on debian and debian-amd64 mirror. There are two recommended mirror scripts. In both two stage rsync, first to download packages, second to update index files after download. I use one stage, here example: rsync --verbose --recursive --links --hard-links --times --delete-after --delay-updates IMHO I achieve the same with only one rsync command, isn't it? With this options rsync: 1. Download new files and modified, but modified don't replace old files yet. 2. Replace old files with new versions after download complete (--delay-updates). 3. Delete absent files (--delete-after) at the end. Benefit is obvious. May be change recommended mirror scripts? How new is the --delay-updates option? It probably was introduced after the mirror scripts were written. That said, what happens when e.g. the rsync stops halfway? Does it update the files it already has? Does it keep the files delayed and resume on the next run? Does it remove the updates and start fresh the next time? Apart from that question a single rsync run is certainly much better. MfG Goswin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: One stage rsync
Goswin von Brederlow wrote: That said, what happens when e.g. the rsync stops halfway? I make experiment, kill rsync server on transfer. Does it update the files it already has? No Does it keep the files delayed and resume on the next run? Does it remove the updates and start fresh the next time? Keep files delayed in .~tmp~ subdir by default, don't remove it on error. (IMHO this is bug of rsync.) But on rsync next time don't use it, simple rewrite. -- Olleg -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
One stage rsync
Hi all. I am working on debian and debian-amd64 mirror. There are two recommended mirror scripts. In both two stage rsync, first to download packages, second to update index files after download. I use one stage, here example: rsync --verbose --recursive --links --hard-links --times --delete-after --delay-updates IMHO I achieve the same with only one rsync command, isn't it? With this options rsync: 1. Download new files and modified, but modified don't replace old files yet. 2. Replace old files with new versions after download complete (--delay-updates). 3. Delete absent files (--delete-after) at the end. Benefit is obvious. May be change recommended mirror scripts? -- Olleg Samoylov -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]