vs-deploy icon indicating copy to clipboard operation
vs-deploy copied to clipboard

SFTP mtimes

Open mikes-gh opened this issue 6 years ago • 3 comments

{
    "deploy": {
    "packages": [
    {
    "name": "Version 1.0",
    "description": "Website Version 1.0",
    "files": ["bin/Debug/netcoreapp2.0/publish/**"]
    }
    ],
    "targets": [
    {
    "type": "sftp",
    "name": "AWS Linux",
    "description": "Remote Linux Server",
    "dir": "/home/ec2-user",
    "host": "ec2-xx-xxx-xx-xxx.us-east-2.compute.amazonaws.com", 
    "port": 22,
    "uploaded": [
        "touch -t ${mtime_touch} ${remote_file}"],
    "privateKey": "C:\\Users\\mikes\\aws-key-pair.pem",
    "user": "ec2-user"
    }
    ]
    }
}

This doesnt set modified times correctly on AWS

Can you see any issues

mikes-gh avatar Sep 20 '17 08:09 mikes-gh

@mikes-gh

What timestamp do you expect and what value does it set finally on the AWS machine?

mkloubert avatar Sep 20 '17 10:09 mkloubert

I would expect the same time stamp on both, The timestamp seems to remain as the upload time on the AWS side

mikes-gh avatar Sep 20 '17 11:09 mikes-gh

BTW beyond copare (file sync tool) seems to set the mtimes correctly using the same credentials so I dont think its a security problem

mikes-gh avatar Sep 20 '17 11:09 mikes-gh