Neither of these are a perl solution but they may help:
- I don't know if this is supported on XP but on Win2003 you can use
VSSADMIN.EXE, might return an errorlevel you can use (or do a regex).
- Here is some WMI (VB, Gasp!) that will do the same thing:
Const VOLUME = "C:\"
Const CONTEXT = "ClientAccessible"
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set objShadowStorage = objWMIService.Get("Win32_ShadowCopy")
errResult = objShadowStorage.Create(VOLUME, CONTEXT, strShadowID)
Ben
-----Original Message-----
From: Dave Wolfe [mailto:[EMAIL PROTECTED]
Sent: Monday, January 17, 2005 12:16 PM
To: [email protected]
Subject: Volume Shadow Copy Perl I/F module?
Is there a Windows Volume Shadow Copy Perl I/F module, especially for
Requestors? I'd like to use Perl to wrap a backup program so it can
perform backups but Windows lame paradigm of file locking won't allow
even the most privileged user access to open files. MS answer is the
Volume Shadow Copy Service. Anybody familiar with it? Is using a Perl
wrapper around the program to instantiate a volume shadow copy, i.e. a
snapshot of the disk volume at that point in time, even feasible? Thanks
for any help and advice you can offer.
--
Dave Wolfe
_______________________________________________
Perl-Win32-Admin mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
_______________________________________________
Perl-Win32-Admin mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs