rdiff-backup-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rdiff-backup-users] VShadow on Windows XP


From: Asim Baig
Subject: Re: [rdiff-backup-users] VShadow on Windows XP
Date: Wed, 03 Jun 2009 09:48:56 -0500
User-agent: Thunderbird 2.0.0.21 (Macintosh/20090302)

I am not sure how a question about network performance relates to Windows VSS/rdiff-backup topic.

Asim Baig
address@hidden
Cognizo Technologies, Inc.

Daniel.Li wrote:
How about network performance?

On Tue, 2009-06-02 at 23:42 -0500, Asim Baig wrote:
Its fairly easy to do. You could use cygwin but there's no need really. I have tested/verified this solution by writing a bash script that writes to a file in a loop in c:\projects. It writes a timestamp per line to the file. As I am running this script, I execute VSS/rdiff-backup from another command prompt window. VSS/rdiff-backup combo backs up the open file being written to perfectly.

this bash script writes to a file at a fast rate

while(true); do  date;echo `date` > open_file.txt; done


Scenario:
-----------
You want to backup your windows c:\projects (or the entire drive if you wish) to a remote linux box 192.168.0.2 (remote destination folder is /var/backups/projects).

Step0:
--------
- Get rdiff-backup.exe, plink.exe, putty-gen.exe (put in your path e.g. c:\windows) - Get dosdev.exe from http://www.ltr-data.se/files/dosdev.zip and put in your path (e.g. C:\windows)
- Enable auto ssh login in to linux box from windows...yada yada
- Make /var/backups/projects writable by the user you will use to do auto ssh login (asim in my case) - Make sure the windows and linux rdiff-backup versions are identical. It wont work if they are not!

Step1:
--------
C:\>type vss-exec.cmd
call %~dp0\vss-setvar.cmd

:: Define temporary drive letter x:
dosdev X: %SHADOW_DEVICE_1%

:: Run rdiff-backup on the snapshot drive (x:)
call %~dp0\rdiff-backup.cmd

:: Delete temporary drive letter
dosdev -r -d X:

Step2:
--------
C:\>type rdiff-backup.cmd
c:\windows\rdiff-backup.exe --terminal-verbosity 5 --print-statistics --no-hard-links --remote-schema "plink.exe -batch -i privatekey.ppk %%s /usr/local/bin/rdiff-backup --server" X:/projects address@hidden::/var/backups/projects

Step3:
--------
C:\>vshadow -script=vss-setver.cmd -exec=vss-exec.cmd c:


Notes:

You can put Step3 as an hourly scheduled job on your windows box.
You could log in to the linux box and check the destination folder to confirm valid rdiff backups

$ cd /var/backups
$ rdiff-backups -l projects

or you could simply run the following on your windows machine to check:

C:\>plink.exe -batch -i privatekey.ppk address@hidden "/usr/local/bin/rdiff-backup -l /var/backups/projects"
Found 10 increments:
    increments.2009-05-16T23:21:41-05:00.dir   Sat May 16 23:21:41 2009
    increments.2009-05-18T16:34:37-05:00.dir   Mon May 18 16:34:37 2009
    increments.2009-05-20T12:03:40-05:00.dir   Wed May 20 12:03:40 2009
    increments.2009-05-20T17:03:50-05:00.dir   Wed May 20 17:03:50 2009
    increments.2009-05-29T08:24:07-05:00.dir   Fri May 29 08:24:07 2009
    increments.2009-05-29T08:42:41-05:00.dir   Fri May 29 08:42:41 2009
    increments.2009-05-29T08:45:47-05:00.dir   Fri May 29 08:45:47 2009
    increments.2009-05-29T08:46:57-05:00.dir   Fri May 29 08:46:57 2009
    increments.2009-05-29T08:48:04-05:00.dir   Fri May 29 08:48:04 2009
    increments.2009-05-29T08:49:22-05:00.dir   Fri May 29 08:49:22 2009
Current mirror: Tue Jun  2 23:00:43 2009

C:\>



Asim Baig
address@hidden
Cognizo Technologies, Inc.


Marcel (Felix) Giannelia wrote:
Hi Greg,

I would be very interested to read how this works -- backing up user registries as been a long-standing annoyance with me on Windows systems.

~Felix.

On 02/06/09 10:23, address@hidden wrote:
Well, I spent some of yesterday getting shadow volumes to work on XP.

(They should work on XP, 2003 Server, and all flavors of Vista, IIRC
- the method I'm using should work on Vista home versions since the
volume shadow snapshot [vss] service is available on VH.)

If anyone wants this information I can document more clearly what
I've done, and package it so you can get at it.

It appears to work flawlessly with RDiff-Backup on a native windows
binary. (Haven't tried it with cygwin binary yet.) Open PSTs and
other "locked" files are handled nicely!

[I am using a bash script in cygwin to handle log parsing etc, just
not running the actual rdiff-backup cygwin binary. {yeah, I know, how
corrupt...:) Using bash to run a windows binary...<chuckle>} I'll
probably write it in Perl before I'm done, but I've got a really nice
bash script right now and I like it.]

This turns rdiff-backup into a very nice tool - IMO, enterprise grade.

Cheers,
Greg



_______________________________________________
rdiff-backup-users mailing list at address@hidden
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

_______________________________________________
rdiff-backup-users mailing list at address@hidden
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
_______________________________________________
rdiff-backup-users mailing list at address@hidden
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki




reply via email to

[Prev in Thread] Current Thread [Next in Thread]