YOuc an do this in Active X script, but you would have to build the file name using a string to account for the date.I do it in DTS alot using something like this, pretty sure it works similar in SSIS (but don't have a 2005 box running yet to use it)'**********************************************************************' Visual Basic ActiveX Script'************************************************************************Function Main() Dim objFSO DIm strDestPath Dim strSourcePath Set objFSO = CreateObject("Scripting.FileSystemObject") strSourcePath = "C:\backup database1\database1_db_20071114.bak" strDEstPath = "F:\OtherBackups\database1_db_20071114.bak" objFSO.CopyFile strSourcePath, strDestPath Main = DTSTaskExecResult_SuccessEnd Functionyou can get the directory name of the backup location from msdb using this (from 2000...anyway)select database_name as DB_Directory,cast(max(end_time) as smalldatetime) as BackupDatefrom msdb.dbo.sysdbmaintplan_historywhere RTRIM(LTRIM(database_name)) 'YourDBName'
which should return the path to the most recent backup date for the database. ( I have a procedure that uses this type of query to email me a full list of all DB's and their last back date. You can use this to build the date into a string for the the file name perhaps.You can grab the full file path from the database as well, but since the only part that changes is the date in the .BAK...well, that's how I do it if needed.
Poor planning on your part does not constitute an emergency on my part.