Here's mine:

If I recall, just add additional lines to
backuppc.cmd/vrsync.cmd/rsyncd.conf for additional drives.  I'm not 100%
sure about this, but I'd imagine it's something like what I have below.
Mine is edited for in-place rsync restores (at your own risk!), but you get
the point.

Also, I'm too lazy to push out Michael's newer version to my clients, but
previously pushed out all vshadow executables and use a script in
backuppc.cmd to determine which copy to use.  2008r2 works with Windows
8.1, but haven't tried for 2012 yet.  (DL vshadow from here:
http://edgylogic.com/blog/vshadow-exe-versions/)

Hope this helps.

-Kris

backuppc.cmd

>
> cd \backuppc
> IF %PROCESSOR_ARCHITECTURE% == x86    set VSHADOW=vshadow-2008-r2-x86.exe
> IF %PROCESSOR_ARCHITECTURE% == AMD64  set VSHADOW=vshadow-2008-r2-x64.exe
> ver | find /i "Windows XP"
> IF not ERRORLEVEL 1 set VSHADOW=vshadow-xp.exe
> ver | find /i "5.2"
> IF not ERRORLEVEL 1 set VSHADOW=vshadow-2003.exe
> IF "%1" == "restore"
>    vsrsync.cmd restore
> ) ELSE (
>    vshadow -script=vss-setvar.cmd -exec=vsrsync.cmd c: <------------Add
> additional drive here
> )


vsrsync.cmd

REM @ECHO OFF
> call vss-setvar.cmd
> cd \BackupPC
> SET CWRSYNCHOME=\BACKUPPC
> SET CYGWIN=nontsec
> SET CWOLDPATH=%PATH%
> SET PATH=\BACKUPPC;%PATH%
> IF (%1) == () (
>    dosdev B: %SHADOW_DEVICE_1% <------------Copy and add for additional
> drives, change Shadow_device env variable
>    REM Go into daemon mode, we'll kill it once we're done
>    rsync -v -v --daemon --config=rsyncd.conf --no-detach
> --log-file=diagnostic.txt
>    dosdev -r -d B: <------------Copy and add for additional drives
> ) ELSE (
>    REM %1 = "restore"
>    rsync -v -v --daemon --config=rsyncd-restore.conf --no-detach
> --log-file=diagnostic.txt
> )


rsyncd.conf

use chroot = false
> strict modes = false
> pid file = rsyncd.pid
> [C]              <------------Copy stanza and add for additional drives
> (different path)
> path = /cygdrive/B/
> auth users = *auth users*
> secrets file = *secrets file*


rsyncd-restore.conf

use chroot = false
> strict modes = false
> pid file = rsyncd.pid
> [C]              <------------Copy stanza and add for additional drives
> (different path)
> path = /cygdrive/C/
> auth users = *auth users*
> secrets file = *secrets file*
------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
BackupPC-users mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to