Import binaries

This commit is contained in:
Daniel Berteaud 2018-12-05 11:28:42 +01:00
parent ad6ad9c857
commit 402b7626bc
8 changed files with 65 additions and 0 deletions

2
.gitattributes vendored Normal file
View File

@ -0,0 +1,2 @@
*.exe filter=lfs diff=lfs merge=lfs -text
*.dll filter=lfs diff=lfs merge=lfs -text

BIN
backuppc-client.exe (Stored with Git LFS) Normal file

Binary file not shown.

BIN
cygiconv-2.dll (Stored with Git LFS) Normal file

Binary file not shown.

BIN
cygwin1.dll (Stored with Git LFS) Normal file

Binary file not shown.

BIN
cygz.dll (Stored with Git LFS) Normal file

Binary file not shown.

7
pre-exec.cmd Normal file
View File

@ -0,0 +1,7 @@
@echo off
tasklist /FI "IMAGENAME eq rsync.exe" 2>NUL | find /I /N "rsync.exe">NUL
if "%ERRORLEVEL%"=="0" exit 255
tasklist /FI "IMAGENAME eq vshadow.exe" 2>NUL | find /I /N "vshadow.exe">NUL
if "%ERRORLEVEL%"=="0" exit 255
cd \backuppc
cscript pre-cmd.vbs

BIN
rsync.exe (Stored with Git LFS) Normal file

Binary file not shown.

41
vsrsync.cmd Normal file
View File

@ -0,0 +1,41 @@
REM @ECHO OFF
REM *****************************************************************
REM
REM VSRSYNC.CMD - Batch file template to start your rsync command (s).
REM
REM By Michael Stowe
REM *****************************************************************
call vss-setvar.cmd
cd \BackupPC
call part.cmd
SET CWRSYNCHOME=\BACKUPPC
SET CYGWIN=nontsec
SET CWOLDPATH="%PATH%"
SET PATH="\BACKUPPC;%PATH%"
FOR /F "tokens=1,2,3,4,5,6,7" %%G IN ("%MAP%") DO (
if "%SHADOW_DEVICE_1%" NEQ "" dosdev %%G %SHADOW_DEVICE_1%
if "%SHADOW_DEVICE_2%" NEQ "" dosdev %%H %SHADOW_DEVICE_2%
if "%SHADOW_DEVICE_3%" NEQ "" dosdev %%I %SHADOW_DEVICE_3%
if "%SHADOW_DEVICE_4%" NEQ "" dosdev %%J %SHADOW_DEVICE_4%
if "%SHADOW_DEVICE_5%" NEQ "" dosdev %%K %SHADOW_DEVICE_5%
if "%SHADOW_DEVICE_6%" NEQ "" dosdev %%L %SHADOW_DEVICE_6%
if "%SHADOW_DEVICE_7%" NEQ "" dosdev %%M %SHADOW_DEVICE_7%
)
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
FOR /F "tokens=1,2,3,4,5,6,7" %%G IN ("%MAP%") DO (
if "%SHADOW_DEVICE_1%" NEQ "" dosdev -r -d %%G
if "%SHADOW_DEVICE_2%" NEQ "" dosdev -r -d %%H
if "%SHADOW_DEVICE_3%" NEQ "" dosdev -r -d %%I
if "%SHADOW_DEVICE_4%" NEQ "" dosdev -r -d %%J
if "%SHADOW_DEVICE_5%" NEQ "" dosdev -r -d %%K
if "%SHADOW_DEVICE_6%" NEQ "" dosdev -r -d %%L
if "%SHADOW_DEVICE_7%" NEQ "" dosdev -r -d %%M
)