Note to self re Shadow Copy.
Jun. 4th, 2012 11:51 am![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
It is stupid.
Also, this is what you do when it refuses to restore files on the grounds that the pathnames are too long*:
1) Find the folder in which the files need to be restored. (This itself may be a Herculean task if you've got multiple files in multiple folders with overlong pathnames, but I can't help you with that part.) Right click this folder and select "Restore previous versions."
2) Right-click any file within the folder and select "Properties." Under the "General" tab, copy the "Location" field, which should look something like this:
(The @GMT-2012.05.31-18.37.27 represents the date and time at which the shadow copy was made.)
3) Create a directory into which to copy the files in question. Here, I'm just calling it Z:\Restore
4) Open Windows PowerShell. Enter this (but don't use my pathnames):
5) Repeat for any other folders in which you need to restore something.
* If Windows 7 honestly feels so strongly about this, why does it permit the creation of files with pathnames in excess of 260 characters in the first place? And why can't it just rename the files something shorter rather than giving an error message and giving up? You can dump them with three-character names in the drive root for all I care, Windows 7, it's fine.
Also, this is what you do when it refuses to restore files on the grounds that the pathnames are too long*:
1) Find the folder in which the files need to be restored. (This itself may be a Herculean task if you've got multiple files in multiple folders with overlong pathnames, but I can't help you with that part.) Right click this folder and select "Restore previous versions."
2) Right-click any file within the folder and select "Properties." Under the "General" tab, copy the "Location" field, which should look something like this:
\\localhost\Z$\@GMT-2012.05.31-18.37.27\Folder Name
(The @GMT-2012.05.31-18.37.27 represents the date and time at which the shadow copy was made.)
3) Create a directory into which to copy the files in question. Here, I'm just calling it Z:\Restore
4) Open Windows PowerShell. Enter this (but don't use my pathnames):
robocopy "\\localhost\Z$\@GMT-2012.05.31-18.37.27\Folder Name" "Z:\Restore"
5) Repeat for any other folders in which you need to restore something.
* If Windows 7 honestly feels so strongly about this, why does it permit the creation of files with pathnames in excess of 260 characters in the first place? And why can't it just rename the files something shorter rather than giving an error message and giving up? You can dump them with three-character names in the drive root for all I care, Windows 7, it's fine.