added copyFile and copyDir to backup.c