Certain Windows files like the various system and user registries are
locked and can't be backed up. Perhaps similar to the files you
mention.

This is not a Backuppc or even rsync issue but a Windows limitation.
You can verify by for example trying to do an md5sum of the file under cygwin.

Only solution I know of is to use something like vshadow to create a shadow copy
that you can then back up.

I have posted code in the past that does this automatically - check
the archives.
Kenneth Porter wrote at about 12:59:36 -0800 on Saturday, February 1, 2025:
 > How can we back up locked files on Windows?
 > 
 > I'm backing up using rsyncd from Cygwin on Windows 10 x64. I've noticed 
 > that locked files are getting skipped with error 16, resource busy:
 > 
 > T:\>c:\rsyncd\bin\rsync.exe 
 > 127.0.0.1::c/Users/ken/AppData/Local/Comms/UnistoreDB/store.vol store.vol
 > rsync: send_files failed to open 
 > "/Users/ken/AppData/Local/Comms/UnistoreDB/store.vol" (in c): Device or 
 > resource busy (16)
 > rsync error: some files/attrs were not transferred (see previous errors) 
 > (code 23) at main.c(1668) [generator=3.1.2]
 > 
 > I've tried running the service as System and then adding System to the 
 > Backup Operators group. I've also tried creating a custom user for the 
 > service and added that user to the Backup Operators group. I'd read that 
 > Backup Operators can override file locks but this doesn't seem to work.
 > 
 > The test file above should be available on other systems. It's part of the 
 > Windows Mail database that holds mail and contacts. This started when I 
 > went hunting for a colleague's Contacts autocomplete list and found it's 
 > supposed to be in this store.vol file. And then I found it's not in the 
 > BackupPC backup, because rsyncd can't access it.
 > 
 > I've got Power Toys installed which adds "What's using this file?" to the 
 > Explorer file context menu, and that reports svchost.exe, a generic app for 
 > running services provided as DLLs.
 > 
 > 
 > 
 > _______________________________________________
 > BackupPC-users mailing list
 > BackupPC-users@lists.sourceforge.net
 > List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
 > Wiki:    https://github.com/backuppc/backuppc/wiki
 > Project: https://backuppc.github.io/backuppc/


_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/

Reply via email to