Search code examples
c#.netbackupenumerationvolume-shadow-service

Backup large number of files without enumerating


Is there a way in .NET to backup a directory containing multiple sub directories each containing potentially 10,000 or more files of roughly 100kb-500kb in size without enumerating? The use case here is incrementally backing up files to USB storage and a NAS, but due to file count, it can take a really long time. I'm familiar with VSS and have created some custom backup applications utilizing it, but I was wondering if there is a way to snapshot a volume containing these files and save just the snapshot, without having to expose the snapshot as a mounted image and copy each file. End game is to shorten the amount of time the copy operation takes.


Solution

  • Windows Server Backup Feature might be a good alternative to custom built solutions. If you are running Windows Server 2016 you may find this article explaining the new features interesting too.