adjusted backup.c to fit C89 standard