backup hive file

hi all
I want to backup system32\config\system file, so i do it by read it and
write to the backup file.
but sometimes the backup file is corrupt. I just read it with the FileObject
just before the cleanup pass down, and i also try to open/backup it after
cleanup, but the backup file is sometimes corrupt too.

Thanks for help