phphuc0608 / Sync_SFPT

Synchronization from local to SFTP server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

  • Script file (.txt)
# Connect to SFTP server using a password
open sftp://username:password@IP:port/ -hostkey="ssh-rsa 1024 ...."
# Synchronize
synchronize local|remote|both "local_dir" "remote_dir"
# Exit WinSCP
exit
  • Run file (.bat)
#path of execute_file -> path of script_file -> path of log file
"path_of_execute_file" /console /script="path_of_script" > "path_of_log"

Command

Synchronize command

Switches:

Switch Description
-preview Xem trước các thay đổi, không đồng bộ hóa. Các cài đặt transfer chuyển đổi -permission, -nopermissions, -speed, -transfer-resumesupport sẽ không có tác dụng

About

Synchronization from local to SFTP server


Languages

Language:Batchfile 100.0%