Vijay Ram Chitrapu (RCVIJAYD)
2005-Nov-29 14:01 UTC
Error creating temporary file on remote PC
Hi all, I am facing an error while trying to use the --temp-dir option in the rsync version 2.4.8. I am aware that it is an old version. But due to space constrain, i am to use this version. The rsync command with options is below: rsync -aI --stats --timeout=60 --temp-dir=/tmp /config/flash.dat 192.168.160.35::application/ When the above command is given, the following error is given. cannot create /tmp/.flash.dat.xxxxx I have verified the directory (tmp directory) permissions also. But still the error persists. Instead if i give the command as below, everything is fine. rsync -aI --stats --timeout=60 --temp-dir=/ /config/flash.dat 192.168.160.35::application/ With this above command, the temporary file is created well. Can anyone please help me out of this problem ?? I have attached the rsyncd.conf file to this mail which is on PC 192.168.160.35. Thanks In Advance, Regards, Vijay Ram.C -------------- next part -------------- log file = /etc/rsyncd.log uid = 0 gid = 0 use chroot = false read only = false [configuration] path = /config/ comment = "This is in flash" [application] path = /appl/ comment = "This is in RAM"
On Tue, Nov 29, 2005 at 07:13:28PM +0530, Vijay Ram Chitrapu (RCVIJAYD) wrote:> I am facing an error while trying to use the --temp-dir option > in the rsync version 2.4.8.I know of no such rsync version (there was a 2.4.6).> cannot create /tmp/.flash.dat.xxxxxThe temp-dir option is meant to be relative to the module's path, so that should be attempting to create the file in /appl/tmp. There was a bug in some older rsync versions that might not have enforced that restriction when chroot wasn't enabled, so you'll need to test to know for sure what is happening. ..wayne..