Do-Risika RAFIEFERANTSIARONJY
2003-Jan-23 12:39 UTC
send_files failed to open filename ...
Hi everybody, I'm mirroring some websites with rsync (daemon on the source), and I noticed in the destination host some error messages 'send_files failed to open filenames', Actually, the concerned files are deleted on the source host, but I would like to ask : * why does rsync say these (in which phase) ? * is these messages harmful or not ? Here below my rsync command and some of the error messages : rsync --delete -zrv --bwlimit=$bwlimit --timeout=1200 --exclude-from='/etc/rsync/exclude' $user\@" . $server . "::htdocs/$dir/ /var/www/htdocs/$dir/ send_files failed to open www.lft.mg/matieres/svt/Evaluations/CLASSE.GIF: No such file or directory send_files failed to open www.lft.mg/matieres/svt/Evaluations/COUPES.GIF: No such file or directory send_files failed to open www.lft.mg/matieres/svt/Evaluations/DBasalte.gif: No such file or directory send_files failed to open www.lft.mg/matieres/svt/Evaluations/SCH<C9>MA.gif: No such file or directory send_files failed to open www.lft.mg/matieres/svt/Evaluations/TPE2002.htm: No such file or directory send_files failed to open www.lft.mg/matieres/svt/Evaluations/art<E9>riole_veine.htm: No such file or directory send_files failed to open www.lft.mg/matieres/svt/Evaluations/clip_image0020.gif: No such file or directory send_files failed to open www.lft.mg/matieres/svt/Evaluations/dorsaleatlantique.gif: No such file or directory send_files failed to open www.lft.mg/matieres/svt/Evaluations/ficaire.jpg: No such file or directory send_files failed to open www.lft.mg/matieres/svt/Evaluations/follicule2.jpg: No such file or directory send_files failed to open www.lft.mg/matieres/svt/Evaluations/jbc_1.htm: No such file or directory send_files failed to open www.lft.mg/matieres/svt/Evaluations/jcb_0.htm: No such file or directory send_files failed to open www.lft.mg/matieres/svt/Evaluations/macrophage.jpg: No such file or directory send_files failed to open www.lft.mg/matieres/svt/Evaluations/merthyr<E9>nienne.gif: No such file or directory send_files failed to open www.lft.mg/matieres/svt/Evaluations/profilsismreflex.gif: No such file or directory send_files failed to open www.lft.mg/matieres/svt/Evaluations/subduc.gif: No such file or directory send_files failed to open www.lft.mg/matieres/svt/Evaluations/test.htm: No such file or directory send_files failed to open www.lft.mg/matieres/svt/Evaluations/wlsctop1.gif: No such file or directory Thanks in advance, -- Do-Risika RAFIEFERANTSIARONJY, SysAdmin mailto:do-risika@simicro-internet.mg ________________ Simicro Internet, mailto:simicro@simicro.mg, http://internet.simicro.mg Tel : (+261) 20 22 648 83 (GMT +3), Fax : (+261) 20 22 661 83
On Thu, Jan 23, 2003 at 03:38:34PM +0300, Do-Risika RAFIEFERANTSIARONJY wrote:> > Hi everybody, > > I'm mirroring some websites with rsync (daemon on the source), and I > noticed in the destination host some error messages 'send_files failed > to open filenames', > > Actually, the concerned files are deleted on the source host, but I > would like to ask : > > * why does rsync say these (in which phase) ?Because the files were deleted from the source between the initial tree scan and send_files. These would be files that meta-data indicates are changed. send_files is what calculates and sends the deltas.> * is these messages harmful or not ?Not harmful. It is an indication of the volatility of the source at the time of transfer. Having some files disappear could result in an inconsistant state. For example: a web repository where the delete happens between index.html and gif or link destinations on which it depends. Just a caution. It could be worthwhile to test the log for these messages and rerun if their count exeeds some threshold, say zero. For an active site i'd suggest double-buffering.> Here below my rsync command and some of the error messages : > > rsync --delete -zrv --bwlimit=$bwlimit --timeout=1200 > --exclude-from='/etc/rsync/exclude' $user\@" . $server . > "::htdocs/$dir/ /var/www/htdocs/$dir/ > > > send_files failed to open > www.lft.mg/matieres/svt/Evaluations/CLASSE.GIF: No such file or directory > send_files failed to open > www.lft.mg/matieres/svt/Evaluations/COUPES.GIF: No such file or directory > send_files failed to open > www.lft.mg/matieres/svt/Evaluations/DBasalte.gif: No such file or directory > send_files failed to open > www.lft.mg/matieres/svt/Evaluations/SCH<C9>MA.gif: No such file or directory[snip] -- ________________________________________________________________ J.W. Schultz Pegasystems Technologies email address: jw@pegasys.ws Remember Cernan and Schmitt
Do-Risika RAFIEFERANTSIARONJY wrote:> but I don't really understand this last part, especially the *double > buffering* ?I think JW means that you should first make a local copy of the directory hierarchy you want to back up to another system, and then run rsync on the copy. If you use different disk drives, then this local copy should be pretty fast, and will minimize the chances that your set of files is internally inconsistent (html links pointing to files that are gone). You can do this in either direction; if you are pushing files, you could push them to a temporary location, then use directory rename ("mv") to have the whole set appear at once. If you are pulling files, you can make the local copy, then rsync with the local copy. HTH PG