Skip to main content

In Portal for ArcGIS 10.6.1 in the backups folder there is a walarchive folder. The files in this folder accumulate daily. Annually 14,000 files are created. Each year these 14,000 files together equal approximately 143GB. There is no setting to change this in 10.6.1.  

 

Every January, for example, in order maintain a reasonable amount of disk space, I manually delete the 14,000 files from the prior year. It is a fairly straightforward task to delete these files, but I am starting to wonder if I could create a workbench and let FME do this.  

 

The file names are random digits and sometimes a letter is included in the name. There does not seem to be a pattern to the file names. I cannot reference the file names in a workbench because of this.  

 

The only way to identify which files to delete is by the Data Modified column in Windows File Explorer, example, delete all files between 1/1/2022 and 12/31/2022 would be a single year.  

 

Here is what I would like to do in FME: 

 

1) Select all files in the \\walarchive folder where Date Modified is the prior year and zip them in a single file in a folder named \\walarchive_zip_files. 

 

2) In the \\walarchive folder, delete all files where Date Modified is prior year.  

 

I would like to get some ideas on where to start in terms of which transformer(s) to use.  

Some primers: Directory and File Pathnames Reader, ZipArchiver (from FME Hub), SystemCaller, and maybe FileDeleter (FME Hub).


Reply