I have Duplicati installed and running as a service successfully. I cam backup the outlook .ost file while outlook is open… so I know that shadow copy is working to some extent. When the user is logged in I cannot backup the users profile files… I am specifically interested in the ntuser.dat file.
Failed to process path: C:\Users\Sales\ntuser.dat => The process cannot access the file ‘C:\Users\Sales\ntuser.dat’ because it is being used by another process.,
Failed to process path: C:\Users\Sales\ntuser.dat.LOG1 => The process cannot access the file ‘C:\Users\Sales\ntuser.dat.LOG1’ because it is being used by another process.,
Failed to process path: C:\Users\Sales\AppData\Local\Microsoft\Windows\UsrClass.dat => The process cannot access the file ‘C:\Users\Sales\AppData\Local\Microsoft\Windows\UsrClass.dat’ because it is being used by another process.,
Failed to process path: C:\Users\Sales\AppData\Local\Microsoft\Windows\UsrClass.dat.LOG1 => The process cannot access the file ‘C:\Users\Sales\AppData\Local\Microsoft\Windows\UsrClass.dat.LOG1’ because it is being used by another process.,
Others claim that it works fine for the registry files:
But please not that Duplicati cannot reliably restore these files, as they may depend on actual disk layout, and Duplicati only considers plain file data.
So you are trying to backup the registry of a logged in user? Using VSS probably will allow that to happen; did you set VSS to on in your job parameters?
I tend to think that using a scripted regedit export is probably the best way to handle this, since DR or system state recovery is not part of Duplicati.
Or do you have a different use case you are thinking about?
DR of your Windows box. I would use a different product–I like Veeam Endpoint free myself, although it does not get my data offsite, so I really rely on it for DR only.
But definitely share more about why you care that you can’t protect those files!
Actually, it was @DesktopMasters that wanted to back up ntuser.dat - I was saying I gave up years ago on trying to it. And, yes - it’s probably because I wasn’t using VSS correctly.
But I agree, files like ntuser.date are generally only useful for the actual installation of Windows that generated them. Since Duplicati backs up files, not drives, the resulting restored ntuser.dat file would likely be useless at best or totally screw over a user account at worst (say it was restored over an existing live user).
The users registry holds lots of important nuggets… For example the accounts info for outlook. If one Loads the profile into regedit and exports the info it can then be edited and imported into the new profile registry giving access to the .OST file for IMAP or Exchange.
This issue reaches a bit further though. I have VSS turned on but for this one user the outlook .OST file is being passed over because “it is locked”. This should not be happening when I have Duplicati running as a system service and VSS on. I am a bit confused as to what further steps to take.
So I felt as though the VSS was not working because of the .ost file. I started digging and figured out that I also have to add --snapshot-policy=required before it will use VSS. Once I did that… It not only solved the .ost file but it has also started backing up the registry.
Is there a comprehensive howto on this somewhere? I feel like the only reason I have been able to get through all this is because I am pretty competent and good at research.
Maybe I over looked it… and that is a problem in its self… But I had no idea that forum existed. I had no idea I should go look for it… I did look for information on the website… should that forum not be linked off the website as a document repository??