Include/Exclude Help

ramico

ADSM.ORG Member
Joined
Jan 13, 2005
Messages
6
Reaction score
0
Points
0
Website
Visit site
I need help concerning the archive of a particular file, we need to backup files with the following extentions .BAK and .BKP and exclude the rest. This is what we have in the dsm.opt:



EXCLUDE.ARCHIVE "?:*"

INCLUDE "E:\MSSQL\BACKUP\...\*.BAK"

INCLUDE "E:\MSSQL\BACKUP\...\*.BKP"



The system archives all .BKP but not the .BAK, keep in mind that the .BKP files are located right in the directory E:\MSSQL\BACKUP\ were as the .BAK is located in a sub-directory of E:\MSSQL\BACKUP\. The archive is being run by a batch file on a ESP Scheduler.
 
Don't forget that the inclexl is read from the bottom up -



Try switching the two around like so:



INCLUDE "E:MSSQLBACKUP...*.BKP"

INCLUDE "E:MSSQLBACKUP...*.BAK"



Or is it possible that you can do INCLUDE "E:\MSSQL\BACKUP\...\*.B*" ?

That would certainly fix that...
 
I do not understand what you want?

do want to archive or backup these files?



if you wants to backup jsut do:



EXCLUDE "E:\...\*"

INCLUDE "E:\MSSQL\BACKUP\...\*.BAK"

INCLUDE "E:\MSSQL\BACKUP\...\*.BKP"



and for archive:



EXCLUDE.Archive "E:\...\*"

INCLUDE "E:\MSSQL\BACKUP\...\*.BAK"

INCLUDE "E:\MSSQL\BACKUP\...\*.BKP"





taht should work without trouble
 
Back
Top