SFTP
How to take the backup of folder of remote computer??
/remote/path/%TIMESTAMP#yyyy-mm-dd%_data
get /remote/path/* C:\local\path\data\%TIMESTAMP#yyyy-mm-dd%
rem Create new local directory
set TIMESTAMP_FORMAT=yyyy-mm-dd
for /F "tokens=* USEBACKQ" %%F in (`winscp.com /command "echo %%TIMESTAMP#%TIMESTAMP_FORMAT%%%" "exit"`) do set TIMESTAMP=%%F
mkdir C:\local\path\data\%TIMESTAMP%
rem Run WinSCP to download files to the newly created directory
winscp.com ...
open ftp://username:password@ftp.example.com
put C:\local\path\data /remote/path/%TIMESTAMP#yyyy-mm-dd%_data
exit
data
>>> 2016-11-15_0139_data