Web site visited during files upload

Advertisement

mlaco
Guest

Web site visited during files upload

Hi!

I use WinSCP for updating my php website. I get regulary php parse-errors in php-error log. The reason is that people visit website during the file being copied...

Is there any setting which would result in uploading file to a temporary filename and than rename it automatically?

If not, what are the options?

(I think about having 2 copies of website on the server. One for production and one for uploading. After each upload, I would run some script to update the production copy).

Thanks for WinSCP, great software!

Reply with quote

Advertisement

mlaco
Guest

Re: Web site visited during files upload

martin wrote:

You can achieve this by using SFTP and forcing WinSCP to enable resumable transfer for every file. Read documentation.

Thx, for reply!

I tried this. During the upload the target file is deleted, the upload-in-progress file has tmp name "filename.filepart".

Problem is, that the original file is deleted: so the website during upload is broken - because the file is missing.

Is there a way to setup WinSCP not to delete the original file, till the upload is complete?


My environment:

SSH protocol version = SSH-2
SSH implementation = OpenSSH_4.3
Encryption algorithm = aes
Compression = No
File transfer protocol = SFTP (v3)
------------------------------------------------------------
Can change permissions = Yes
Can change owner/group = No
Can execute arbitrary command = No
Can create symlink/hardlink = Yes/No
Can lookup user groups = No
Can duplicate remote files = No
Can check available space = No
Native text (ASCII) mode transfers = No
------------------------------------------------------------
Additional protocol information
The server does not support any SFTP extension.

Reply with quote

martin
Site Admin
martin avatar

Re: Web site visited during files upload

mlaco wrote:

Is there a way to setup WinSCP not to delete the original file, till the upload is complete?
No. But I can implement that.

Reply with quote

mlaco
Guest

Re: Web site visited during files upload

martin wrote:

No. But I can implement that.

Wow, that would be great!!! :-)

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum