Prevent file erasing of file contents and create backup