Archiving files in XMDBTool Background Process
The XMDBTool background process archives every file that is imported using sftp. The archivedFiles folder is automatically created to archive every single imported transactional or credit card data file.
The archive directory is specified by the application parameter called archive.dir. For transactional data the archive folder is created within the <archive.dir>/archive/<TenantID>/noncc folder and for credit card data this folder is created within the <archive.dir>/archive/<TenantID>/cc folder.
The application parameter, xmdbtool.archiveDays must specify the number of days for which the files can be archived. The default value is 1 (one day) from the date the file is received for processing. This application parameter is for transactional data.
For credit card imports, the application parameter is xmdbtool.archiveDaysCC. This must specify the number of days that the credit card files can be archived. The default value is 1 (one day) from the date the file is received for processing.
For example, if the value for xmdbtool.archiveDays or xmdbtool.archiveDaysCC is 5, then the files are archived five days after the day the files are received for processing. If the value is 0 (zero), the files are not archived.
Similarly after the download process, (after an export is done); the downloaded data files are also archived. The name of the archived folder is archivedFiles and can be found in < archive.dir>/ archive/<TenantID>/export folder.
The application parameter, xmdbtool.backup is used to specify the number of days for which the files can be archived after the export. The default value is 1 (one day) from the date the files are received for processing.