Copy open files using Volume Shadow copy Service

Something is missing in Far Manager? You have a great idea that should be heard? Write here.
Post Reply
szir
Posts: 8
Joined: Mon 19 Apr, 2010 19:01

Copy open files using Volume Shadow copy Service

Post by szir » Sun 08 May, 2011 19:32

Hi everyone

I really love FAR manager and I use it all the time. So first of all thanks to all the developers.

I was thinking about file/folder synchronization and what would it need to handle (symbolic links, hard links, ACLs, attributes, NTFS encrypted files, open files, network shares... )
Then I had an idea: It would be nice if FAR could copy open files. I searched "shadow copy farmanager" but only found one topic. (I was hoping for a plugin or something)

What I came up with is a User Menu entry to copy selected files:

Code: Select all

Label=Copy files with Volume Shadow Copy Service
Command=E:\bin\VSCS.cmd "!^!\" "!#!\" "!^!@!"



Colored versions available here: http://szikraistvan.no-ip.info/work/script/

I tested it on mail.pst, apache logs.. and it seem to work fine. Unfortunately xcopy doesn't seem to work with \\?\ paths.

Hope Shadow Copy will get into FAR 3.0 :)

--
Istvan Szikra
Last edited by szir on Thu 01 Jan, 1970 01:00, edited 0 times in total.
Reason: Hid the technicalities

alexmitin
Posts: 50
Joined: Tue 17 Feb, 2009 08:37

Re: Copy open files using Volume Shadow copy Service

Post by alexmitin » Mon 09 May, 2011 20:55

Then I had an idea: It would be nice if FAR could copy open files. I searched "shadow copy farmanager" but only found one topic. (I was hoping for a plugin or something)
I think you are referring to this topic:
http://forum.farmanager.com/viewtopic.php?f=20&t=6180

You forgot to mention that the user should have admin rights to use your script.

szir
Posts: 8
Joined: Mon 19 Apr, 2010 19:01

Re: Copy open files using Volume Shadow copy Service

Post by szir » Thu 12 May, 2011 17:02

Yes, I was referring to that topic :)

And you are right, Volume Shadow Copy Service requires admin rights to create shadow copy. Technically (I believe) Local System, Administrator, Network Service, Local Service have sufficient access rights. (on 2008 server additional users can be trusted with the appropriate privileges)
http://technet.microsoft.com/en-us/libr ... S.10).aspx

Post Reply

Return to “Suggestions and Ideas”

Who is online

Users browsing this forum: No registered users and 1 guest