Re: [BackupPC-users] Windows volume/shadow copies

2006-11-08 Thread Craig Barratt
Stephen Joyce writes:

> Is anyone doing windows backups (including open files) using the volume 
> shadow copy service?
>
> It seems that it shouldn't be too hard to even do bare-metal restores by 
> combining VSS with fileacl or setacl to record & restore NTFS ACLs on 
> files and dirs.
> 
> Does anyone have a recipe for doing this, before I re-invent the wheel?

Yes, VSS looks like the most promising way to backup all WinXX files.

I'm attaching a few relevant emails from the mail list.

Craig

-- Forwarded message --
To:   backuppc-users@lists.sourceforge.net
From: Elias Penttilä <[EMAIL PROTECTED]>
Date: Mon, 10 Apr 2006 14:52:05 +0300
Subj: [BackupPC-users] rsync with VSS-support

Hi,

this is something I did a couple of days ago for our company's use, I 
thought it would maybe help someone else too.

Basically this enables rsync to send files which are locked, e.g. in-use 
Outlook .pst-files, the Windows registry and pretty much everything else 
except EFS-encrypted files.

Everything can be found here: http://iki.fi/~eliasp/rsync-vss

The most useful thing is probably the rsync.msi-file which will install 
rsync under C:\Program Files\rsync. A zip-file is also provided which 
includes everything in the installer plus the installer as a WiX-source 
file.

NOTE that this only works on Windows XP currently, I tried it on Server 
2003, but for some reason it didn't work.

There is a patch file which can be applied to the rsync 2.6.6 source 
found in cygwin. It's pretty simple stuff actually. Note that it needs a 
C++-compiler as I didn't have time to fiddle with the C-style COM. There 
were some other issues too, like the linker not finding 
CreateVssBackupComponents directly and fstat not working for files 
opened with CreateFile. You have to install Microsoft's VSS SDK and copy 
the include files and libraries to rsync-2.6.6/vss/inc and 
rsync-2.6.6/vss/lib respectively.

-- Forwarded message --
To:   Nicholas Hall <[EMAIL PROTECTED]>,
  Elias Penttilä <[EMAIL PROTECTED]>
From: Kris Boutilier <[EMAIL PROTECTED]>
Cc:   
Date: Thu, 13 Apr 2006 12:00:03 -0700
Subj: RE: [BackupPC-users] rsync with VSS-support

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Nicholas Hall
> Sent: Thursday, April 13, 2006 11:33 AM
> To: Elias Penttilä
> Cc: backuppc-users@lists.sourceforge.net
> Subject: Re: [BackupPC-users] rsync with VSS-support
> 
> On 4/10/06, Elias Penttilä <[EMAIL PROTECTED]> wrote:
> > ...
> > NOTE that this only works on Windows XP currently, I tried it on 
> > Server 2003, but for some reason it didn't work.
> 
> Does anyone know what's involved with getting this to work on 
> 2000/2003 server?
> 

The Volume Shadow Copy Service was only introduced with Windows 2003 
Server/Windows XP - 2000 has no such facility without purchasing third party 
glue such as St. Bernard Open File Manager 
(http://www.stbernard.com/products/ofm/products_ofm.asp).

However, if someone knows a technique to shoehorn the Microsoft VSS server 
service into a Windows 2000 server I'd love to hear about it.

Kris Boutilier
Information Services Coordinator
Sunshine Coast Regional District

-- Forwarded message --
To:   Kris Boutilier <[EMAIL PROTECTED]>
From: Les Mikesell <[EMAIL PROTECTED]>
Cc:   Nicholas Hall <[EMAIL PROTECTED]>,
  Elias Penttilä <[EMAIL PROTECTED]>,
  backuppc-users@lists.sourceforge.net
Date: Thu, 13 Apr 2006 14:53:59 -0500
Subj: RE: [BackupPC-users] rsync with VSS-support

On Thu, 2006-04-13 at 14:00, Kris Boutilier wrote:
> > 
> > Does anyone know what's involved with getting this to work on 
> > 2000/2003 server?
> > 
> 
> The Volume Shadow Copy Service was only introduced with Windows 2003 
> Server/Windows XP - 2000 has no such facility without purchasing third party 
> glue such as St. Bernard Open File Manager 
> (http://www.stbernard.com/products/ofm/products_ofm.asp).
> 
> However, if someone knows a technique to shoehorn the Microsoft VSS server 
> service into a Windows 2000 server I'd love to hear about it.

Before anyone gets too carried away with this, they should probably
find out if it is legal to distribute.  Rsync is covered by the
GPL which demands that all parts of a work must be redistributable
under GPL terms or it can't be distributed at all.  I assume that
the VSS SDK code can't be.  There's an exception for components that
are normally distributed with the operating system that might apply
since this is a download from Microsoft and the download procedure
checks to see if you are running windows.  However, I think the
exception requires dynamic linking and for each user to obtain
his own copy of the non-gpl'd component separately.

-- 
  Les Mikesell
   [EMAIL PROTECTED]

-- Forwarded message --
To:   Carl Wilhelm Soderstrom <[EMAIL PROTECTED]>
From: Travis Fraser <[EMAIL PROTECTED]>
Cc:   backuppc-users@lists.sourceforge.net
Date: Wed, 24 May 2006 17:52:

Re: [BackupPC-users] Windows volume/shadow copies

2006-11-08 Thread Tomasz Chmielewski
Stephen Joyce wrote:
> Is anyone doing windows backups (including open files) using the volume 
> shadow copy service?
> 
> It seems that it shouldn't be too hard to even do bare-metal restores by 
> combining VSS with fileacl or setacl to record & restore NTFS ACLs on 
> files and dirs.
> 
> Does anyone have a recipe for doing this, before I re-invent the wheel?

I use it, and it works quite fine.

First, I start fileacl for all drives, i.e.:

F:\backup\fileacl\fileacl.exe C: /sub /advanced /owner/batch > 
F:\backup\acls-c.bat.txt

When it's finished, I make a shadow copy of all drives.

The only problem is, that you're still not able to backup files which 
have permissions which deny you to read such files (in Windows, an 
ordinary user can set the permissions in a way, so that even an 
Administrator can't open it without changing the permissions first).

But that's a general problem with Windows IMO.

-- 
Tomasz Chmielewski
http://wpkg.org

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] Windows volume/shadow copies

2006-11-07 Thread Stephen Joyce
Is anyone doing windows backups (including open files) using the volume 
shadow copy service?

It seems that it shouldn't be too hard to even do bare-metal restores by 
combining VSS with fileacl or setacl to record & restore NTFS ACLs on 
files and dirs.

Does anyone have a recipe for doing this, before I re-invent the wheel?

Cheers, Stephen
--
Stephen Joyce
Systems AdministratorP A N I C
Physics & Astronomy Department Physics & Astronomy
University of North Carolina at Chapel Hill Network Infrastructure
voice: (919) 962-7214and Computing
fax: (919) 962-0480   http://www.panic.unc.edu

"Lazy Programmers know that if a thing is worth doing, it's worth
doing well -- unless doing it well takes so long that isn't worth
doing any more. Then you just do it 'good enough'"
--- Programming Perl, p 282.

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/