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/