On Mon, Oct 28, 2002 at 03:12:53PM +0800, Patrick Hsieh wrote: > Since "foo" has no write permission under /var/www, he cannot rsync > from remote server to the local filesystem because rsync will try to > make temp file and unlink the original file before writing over it. Is > there any solution to this problem?
See the -T (--temp-dir) option for how to tell rsync to put its temp file in some other directory. If the temp dir is on the same file system as /var/www, rsync will still rename the new file over the top of the old one (which insures that no one can request a partially-written file). If it is on a different file system, rsync will use its copy_file() routine to copy the tmp file over the destination file. ..wayne.. -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html