The .bak file will get created where it is told to get created by the application or script. Check how this was set up.
@ Tom, might be right. .bak, this is a copy of a file created by a programme as a precautionary measure. This type of file is not essential; it can be deleted but can be kept it as back-up. Though the Q is still confusing and require more details!