Copying files from remote side failed - Can't open file
Hello! I'm trying to automate downloading backups from my server.
I use Task Scheduler in Windows 7.
Code of script
What I get
The script doesn't create any file.
Is it rights or what ...
Can you help me please! I'm new to winscp scripting and I don't get what's going wrong.
Thank you.
I use Task Scheduler in Windows 7.
Code of script
option batch on option confirm off open ftp://... option transfer binary get -resume bak.sh С:\backup\new\
What I get
< 2015-03-10 18:08:35.182 150 Here comes the directory listing. . 2015-03-10 18:08:35.183 drwx------ 4 1003 600 4096 Mar 10 03:18 . . 2015-03-10 18:08:35.183 drwx------ 4 1003 600 4096 Mar 10 03:18 .. <...> . 2015-03-10 18:08:35.184 -rw------- 1 1003 600 1342 Mar 08 21:46 bak.sh <...> < 2015-03-10 18:08:35.206 226 Directory send OK. . 2015-03-10 18:08:35.206 Directory listing successful . 2015-03-10 18:08:35.206 bak.sh;-;1342;2015-03-08T18:46:00.000Z;"1003" [0];"600" [0];rw-------;0 . 2015-03-10 18:08:35.207 File: '/bak.sh' [2015-03-08T18:46:00.000Z] [1342] . 2015-03-10 18:08:35.207 Copying "/bak.sh" to local directory started. . 2015-03-10 18:08:35.207 Binary transfer mode selected. . 2015-03-10 18:08:35.207 Starting download of /bak.sh > 2015-03-10 18:08:35.208 TYPE I < 2015-03-10 18:08:35.236 200 Switching to Binary mode. > 2015-03-10 18:08:35.236 PASV < 2015-03-10 18:08:35.261 227 Entering Passive Mode (188,225,16,121,118,122). . 2015-03-10 18:08:35.261 Can't open file 'С:\backup\new\bak.sh'. . 2015-03-10 18:08:35.261 Copying files from remote side failed. * 2015-03-10 18:08:35.261 (ExtException) **Can't open file 'С:\backup\new\bak.sh'.** * 2015-03-10 18:08:35.261 Copying files from remote side failed. . 2015-03-10 18:08:35.261 Asking user: . 2015-03-10 18:08:35.261 Error transferring file '/bak.sh'. ("Can't open file 'С:\backup\new\bak.sh'.","Copying files from remote side failed.") < 2015-03-10 18:08:35.261 Script: Error transferring file '/bak.sh'. < 2015-03-10 18:08:35.262 Script: Can't open file 'С:\backup\new\bak.sh'. < 2015-03-10 18:08:35.262 Copying files from remote side failed. * 2015-03-10 18:08:35.263 (EScpSkipFile) Error transferring file '/bak.sh'. * 2015-03-10 18:08:35.263 Can't open file 'С:\backup\new\bak.sh'. * 2015-03-10 18:08:35.263 Copying files from remote side failed. . 2015-03-10 18:08:35.263 Script: Failed > 2015-03-10 18:08:35.263 Script: exit . 2015-03-10 18:08:35.263 Script: Exit code: 1 . 2015-03-10 18:08:35.265 Disconnected from server
The script doesn't create any file.
Is it rights or what ...
Can you help me please! I'm new to winscp scripting and I don't get what's going wrong.
Thank you.