snarp: small cute androgynous android crossing arms and looking very serious (Default)
Snarp ([personal profile] snarp) wrote2012-06-04 11:51 am

Note to self re Shadow Copy.

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:

\\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.

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org