[wanted] Plugin to access shadow copies of network drives

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
TealC
Junior Member
Junior Member
Posts: 96
Joined: 2005-08-10, 11:34 UTC

[wanted] Plugin to access shadow copies of network drives

Post by *TealC »

Hi

Yesterday i needed to restore some files from a shadow copy of a network drive. I did this by opening the shadow copy in explorer, then dragging the files and dropping them on an open total commander tab. While the files were copied i noticed that the source path looked like this: x:\@GMT-2007.08.16-05.00.00\path\to\files, so i tried and entered "cd x:\@GMT-2007.08.16-05.00.00\" in tc's command line and it actually worked, i was viewing the shadow copy!
Obviously you need to know the date and time of the snapshot in order to access it, which brings me to my question: Is there a filesystem Plugin, which lists the available shadow copies of each connected network drive, so they can easily be accessed?
If not, would anyone be interested in creating such a plugin?

regards,
Marius
User avatar
theosdikaios
Senior Member
Senior Member
Posts: 228
Joined: 2006-02-04, 13:02 UTC

Post by *theosdikaios »

Any news about this topic?

TIA.
"Since there are many things which have never happened and never will happen,
and which nevertheless are clearly conceivable, and imply no contradiction,
how can one say they are absolutely impossible?" Leibniz
TealC
Junior Member
Junior Member
Posts: 96
Joined: 2005-08-10, 11:34 UTC

Post by *TealC »

unfortunately not.

a friend of mine tried implementing it using the scriptwfx plugin, but he didn't get far...
User avatar
norfie²
Power Member
Power Member
Posts: 1038
Joined: 2006-02-10, 07:27 UTC

Post by *norfie² »

It would be interesting for WVI users too. WVI saves restore points with help of Volume Shadow Service. The path looks like
\\localhost\C$\@GMT-2008.07.30-23.47.11
for a snapshot on drive C.
"War is evil, in so far as it makes more bad people than it takes away."
Immanuel Kant in "Perpetual Peace"
TealC
Junior Member
Junior Member
Posts: 96
Joined: 2005-08-10, 11:34 UTC

Post by *TealC »

excuse my ignorance, but what's wvi?
User avatar
norfie²
Power Member
Power Member
Posts: 1038
Joined: 2006-02-10, 07:27 UTC

Post by *norfie² »

WVI is my abbrevation for Windows VIsta or Windows V6 what means Vista. :)
User avatar
HolgerK
Power Member
Power Member
Posts: 5408
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

A very simple way to open previous versions in TC (only tested with vista) is to:

:arrow: create the following registry entry:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Folder\shell\Open in Total Commander]

[HKEY_CLASSES_ROOT\Folder\shell\Open in Total Commander\command]
@="c:\\Tools\\totalcmd\\totalcmd.exe /O  /T /R=\"%1\""
(of course the path to TC has to adapted to your local installation)

:arrow: right click <RMB> on a drive button (for example [C:] )

:arrow: select "Properties: Previous Versions"

:arrow: select the date (C$: 28.07.2008)

:arrow: <RMB> and select "Open in Total Commander"

Regards,
Holger
User avatar
norfie²
Power Member
Power Member
Posts: 1038
Joined: 2006-02-10, 07:27 UTC

Post by *norfie² »

2HolgerK
Your suggestion works with WXP (and W2k3 server) too.

Another way without any preparations but one step more like above:
1st: properties of a drive/directory
2nd: go to "Previous Versions", choose a version and press button "View"
3rd: choose a file or directory at new Explorer window, properties
4th: Now you see the location which can copied into TCmd.
TealC
Junior Member
Junior Member
Posts: 96
Joined: 2005-08-10, 11:34 UTC

Post by *TealC »

Works for me too. Only with the difference, that in Windows XP you can not right click on the Date, but you need to display it in explorer first, then you can use the right-click solution. But it's better than copying the path, then going to TC, then change directory.

Thanks!
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

[Plugin request] FS plugin for VSS Previous Versions

Post by *DrShark »

In Windows 7, there is a handy feature in drive properties, called Previous versions. It allows to restore previous/archived versions of the files on the NTFS formatted drive if VSS is enabled.
In the list of "restore points" of the drive, select on and pick "Open" item in its contect menu. Then the browsing of the drive in Explorer allowed, the paths are presented like \\localhost\C$\Documents (‎8 ‎квітня ‎2012‎ р., ‏‎23:03), where (‎8 ‎квітня ‎2012‎ р., ‏‎23:03) is a date-time of snapshot (drive restore point).

Total Commander integration will allow more then just a browsing: usage of its Search and Sync Dirs tools will give great benefits in time saving.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
HolgerK
Power Member
Power Member
Posts: 5408
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

RE: [Plugin request] FS plugin for VSS Previous Versions

Post by *DrShark »

Thanks! The threads may be merged now.
2HolgerK
With your .reg file code on Windows 7 x64 I got an error:
You can only import binary registry files from within the registry editor (in russian: "Возможен импорт только двоичных файлов данных реестра")
After manually entering data using Registry editor and exporting the key, I got next working .reg file:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Folder\shell\Open in Total Commander\command]
@="C:\\totalcmd\\TOTALCMD64.EXE /O /T /R="%1""

Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
white
Power Member
Power Member
Posts: 5764
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

[mod]Thread [Plugin request] FS plugin for VSS Previous Versions merged.

White (moderator)[/mod]
User avatar
X-Byte
Member
Member
Posts: 173
Joined: 2004-11-29, 09:34 UTC
Location: Hessen, Germany

Post by *X-Byte »

Unfortunately there seems to be a bug in how Total Commander handles the access to previous versions.
In my case I have a network share, presented by a NetApp file server which supports the access to previous versions.
In Explorer, accessing previous versions via the properties dialog and Open works flawlessly.
Opening the same path and version in Total Commander (GMT addition to the path) seems to work at first glance but TC always only shows the current version and not the previous one.

Anyone with access to a NetApp who can verify this behaviour?

Still, a more convenient and most importantly working way to access previous versions, integrated into Total Commander would be much appreciated. The quirky way using the context menu within properties/previous versions might be a workaround but won't work using TC in portable mode nor seems to be working at all with NetApp file servers.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50421
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Explorer integration only works with Explorer. However, you can use the buttons "Copy" or "Restore" to access the older versions.
Author of Total Commander
https://www.ghisler.com
Post Reply