-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shadow Copy error when trying to backup data on a DrivePool drive #92
Comments
I have a pseudo-fixed drive that uses a permanently installed SDcard and stumbled over the same thing. I modified the script so that it determines the drive letter for each backup source (function Get-Drives, now not only called if Test-Path fails but always) and then uses the Windows 'vssadmin' tool to get a list of drives that support VSS. If the drive from the backup source is not in the list of drives that support VSS, it disables VSS, If you're interested I can post it here or pm it. |
Either would be GREATLY appreciated! I imagine posting it here would make it easier for people in the future as well. |
Here it is. Already had an idea to improve it to revert to default behaviour when vssadmin fails (e.g.wrong language). Maybe I will add this later. |
Weird, I'm getting this exact error, no drivepool. I only get on Powershell core (v7.4.0) though, windows powershell works fine. Been trying to figure out why that makes a difference considering powershell itself is not doing anything except passing in the argument to use vss |
Sounds like a permission issue. |
What permission? I'm running as admin, there's no other permissions I'm aware of |
No, I found the issue, it seems v7.3 changed how quoted arguments are passed (see stackoverflow explanation). It can be fixed by setting $PSNativeCommandArgumentPassing = 'Legacy' or by removing the quoting for this line (the $p = '"{0}"' -f ((Join-Path $root_path $path) -replace "\\$") I'll probably make a pr for it. |
I'm getting the following error when attempting to backup data from a drive mounted with StableBit's DrivePool software (https://stablebit.com/DrivePool). DrivePool doesn't support Shadow Copy (https://community.covecube.com/index.php?/topic/4222-how-do-i-correctly-backup-stablebit-drivepool/&do=findComment&comment=28277) and I imagine this is why I'm getting the error.
Inside the backup.ps1 file I see this portion:
Is there something I can change here (or anywhere else) that would allow my backups to use shadow copy on the C drive and similar but not on the F drive which is the DrivePool drive?
The text was updated successfully, but these errors were encountered: