files not moved immediately to final destination from temp location after rsync returns with success
tony at servasoftware.com
Wed Apr 20 17:29:23 MDT 2011
OK, I'll bite.
With all file system designs, there is a tradeoff between speed and safety.
This tradeoff occurs at all levels where there might be something that buffers information.
Writing into the middle of a structure can be incredibly slow if everything is done safely.
Enter disk caches (Operating System, Disk controller, Disk itself)
Much much faster, BUT if mother nature pulls the plug, very weird things can happen.
Expect everything to be very non-informative about the strategy used.
With an SD card I would expect everything in the chain to NOT wait for the SD card to be finished.
Might even take a few minutes for the disk cache to be flushed to the SD card.
Makes no difference unless you pull the SD card prematurely
(or possibly in some cases actually look at what is actually on the card)
From: rsync-bounces at lists.samba.org [mailto:rsync-bounces at lists.samba.org] On Behalf Of Henri Shustak
Sent: Wednesday, April 20, 2011 6:17 PM
Subject: Re: files not moved immediately to final destination from temp location after rsync returns with success
> I am using rsync version 3.0.7 on an arm linux based embedded device. The device pulls data periodically from a rsync server and stores the files on an SD card. The partial, temp and final rsync destinations all reside on the SD card.
> I came across an issue where it seems that the rsync call returned with a success but the files that it pulled are not moved immediately to its final destination.
You could try issuing the 'sync' command? However, I do not think believe that this should be required.
Perhaps someone else on this list will have some other ideas?
This email is protected by LBackup
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
More information about the rsync