Home > SAFE Backup > How to create a temporary file filter

How to create a temporary file filter

You may get errors on files that look something like the following:

[New File] File="\\File location 1\Sub location 2\sub location 3 \~File name.xlsx" Error="java.io.IOException: [CreateFileW] (32) The process cannot access the file because it is being used by another process.rnrn

(Please note, the error itself will be larger but the first section should be the same, the location and file will be different)

This error occurs when a temp file is created due to a file being left open. While Volume Shadow Copy may be enabled, this will not work over network locations. Hence seeing this error.

To stop this error occurring a filter will need to be created to stop the software trying to backup temp files. This can be done on your portal or on the client software on the machine, this is lower down the page.

Inside your portal:

Click “Edit” on the set in question and go to “source”. From here you will see a tab that says “filters” select this. You will need to click the “apply filters to the backup source” button.

This will then highlight “Add +” option which you then need to select.

This is the window that will be opened up:

And this is how you will need to fill it out (re-naming the filter is optional but always helpful).

You will need to “Add” the character “~” in the “Matching Patters” section. As well as edit the other highlighted section.

The most important part if filling out the location to apply the filter to, this you can get from your original error message. The further down you go in the path the less the filter has to check, if you know the particular folder that has the files causing the issue I would recommend adding that. For example, if the file is:

\\MyNAS\Me\My Documents\Personal Finance\2020\June\~Debit Card transactions.xlsx

And you just add “\\MyNAS” the filter will check all files in this location that are backing up, this might cause the backup to take longer than usual. If you added “\\MyNAS\Me\My Documents\Personal Finance\2020” the filter will only focus on that source.

 

Ensure you press “Save” on this page, and then “Save All” on the Filters tab.

You can then either run a manual backup or wait for the next scheduled backup to ensure the filter has been added successfully.

On the client software:

You can also set filters in the client software. Open the software and navigate to backup sets.

Select the set reporting the warning and select “Source” down the left, slide the “Apply filter” toggle and press “Add new filter”.

This is the screen you will see:

And this is how you will need to edit it to ensure temp files are not backed up.

You will need to “Add” the character “~” in the “Existing patterns to match” section.

The most important part if filling out the location to apply the filter to, you will need to browse to this location via the “Change” button. This location you can get from your original error message. The further down you go in the path the less the filter has to check, if you know the particular folder that has the files causing the issue I would recommend adding that. For example, if the file is:

\\MyNAS\Me\My Documents\Personal Finance\2020\June\~Debit Card transactions.xlsx

And you just add “\\MyNAS” the filter will check all files in this location that are backing up, this might cause the backup to take longer than usual. If you added “\\MyNAS\Me\My Documents\Personal Finance\2020” the filter will only focus on that source.

Press “Ok” and “Save”.

You can then either run a manual backup or wait for the next scheduled backup to ensure the filter has been added successfully.