File: sync-docs.bat

package info (click to toggle)
statsvn 0.7.0.dfsg-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,324 kB
  • sloc: xml: 5,959; java: 4,082; sh: 81; makefile: 5
file content (30 lines) | stat: -rw-r--r-- 1,000 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@ECHO OFF

REM Make environment variable changes local to this batch file
SETLOCAL

REM SET CWRSYNCHOME=C:\cygwin\bin
SET CWRSYNCHOME=C:\PROGRAM FILES\CWRSYNC


REM Set CYGWIN variable to 'nontsec'. That makes sure that permissions
REM on your windows machine are not updated as a side effect of cygwin
REM operations.
SET CYGWIN=nontsec

REM Set HOME variable to your windows home directory. That makes sure 
REM that ssh command creates known_hosts in a directory you have access.
SET HOME=%HOMEDRIVE%%HOMEPATH%

REM Make cwRsync home as a part of system PATH to find required DLLs
SET CWOLDPATH=%PATH%
SET PATH=%CWRSYNCHOME%\BIN;%PATH%


REM if you want to avoid problems with file permissions on pwd.txt, do this
REM rsync  -vaz  --delete "/cygdrive/c/temp/test2" rsync://benoitx@server2.shade.ca/statsvn/ < pwd.txt

rsync --no-implied-dirs --password-file=pwd.txt -vaz "/cygdrive/c/project/statsvn/statsvn/target/docs/" rsync://benoitx@server2.shade.ca/statsvn/