liximomo / vscode-sftp

Super fast sftp/ftp extension for VS Code
MIT License
1.5k stars 256 forks source link

Sync only one subfolder from within my project (for deployment of node app) #1003

Open klauskobald opened 1 year ago

klauskobald commented 1 year ago

Do you read the FAQ?

Describe the bug

I want to sync ONLY one folder ( .output/ ) and its subfolders from inside my projects folder I am trying this config:

{
    "name": "cloud.sfi******",
    "host": "**********",
    "context": "./output/",
    "protocol": "sftp",
    "port": 22,
    "username": "root",    
    "remotePath": "/srv/nfs/kubedata/time-tracker/www",
    "watcher": {
        "files": ".output/**",
        "autoUpload": false,
        "autoDelete": false
    },
    "uploadOnSave": false,
    "privateKeyPath": "/Users/klausk/.ssh/id_rsa"
}

but I get this error when I run sync local > remote [07-29 21:57:11] [warn] The "Sync Local To Remote" command get canceled because of missing targets.

The config is my best guess because I have no idea how to set a local path and there is nothing in the documentation. I assume context is the keyword??? (Upload works fine in other environments, where I simply sync the whole project.)