i have sFTP account to recieve this kind of files
/fcts_db_backup/fcts_backup 2014-08-22 02;01;24 (Full).zip
/fcts_db_backup/fcts_backup 2014-08-23 02;00;52 (Full).zip
/fcts_db_backup/fcts_backup 2014-08-24 02;01;44 (Full).zip
/fcts_db_backup/fcts_backup 2014-08-25 02;00;59 (Full).zip
They are Zip file that holds database backups. Every day i have to retrive it and restore it on my database.
there for,all i need is to find todays date/time stamp and put it on my local drive.
I tried to it with script task
NewDate = DateAdd("D", -i, newDate)
todaysDate = Format(newDate, "YYYY-MM-DD")
sFTP = "/fcts_db_Backup/fcts_Backup" & todaysDate & "*.Zip"
Dts.Variables("InputFile").Value = Destination
but when i connect it to the FTP Task and run it. it keeps saying
" FTP Task: File represented by "User::InputFile" does not exist"
The variable I give for InputFile is
"/fcts_db_Backup/fcts_Backup*.zip"
Please help me.
↧