const RemoteSync = require('remote-sync'); const upload = 'mirror -R -c --overwrite public htdocs' const config = { operations : [ { operation : 'feltöltés', command : upload } ], user : 'valaki', pw : 'titok', host : 'valahol.tld', lftp_settings : { 'ftp:ssl-force': 'true', 'ftp:ssl-protect-data':'true', 'ssl:verify-certificate':'true', } }; const client = new RemoteSync(config); client.perform();