I'm in the process of setting up a backup procedure on a Windows 10 Home/Kubuntu 16.04 dual boot system using rsync.
I have created a virtual machine, which has these OS-es, and from the Windows subsystem for Linux launched rsync to copy the folders of the system drive to another. Then I booted into Ubuntu formatted my Windows drive, and copied the backed up files back.
Then I attempted to boot into Windows, but it was unsuccessful, because it couldn't find the registry. I have found out, that rsync was unable to copy the registry hives. I'm also unable to copy them in Windows Explorer. In Windows Explorer I get an error saying the file is open, and in bash I get a permission denied error, even when run as root, and sudo.
Is there some way to copy these hives, so I'll be able to do a complete system backup&restore with rsync easily? If not, are there some command line tools available for Windows, which can I use to copy the registry hives?