giving tomcat ownership of all files and only running the backup if the backup file exists