SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
rdiff-backup cleint for windows 32
Author Message
Post rdiff-backup cleint for windows 32 
dave < at > solutionsfirst.com.au(David Kempe) 14.12.04 21:50

I doubt it does. rdiff-backup librsync functions are very unix like
and require the cgywin way of handling things. SFU doesn't provide
anywhere near enough functionality for it to run.

Yepp. "Services for Unix" isi mainly only a tool box.

I haven't actually tried it either, but I have tried to
get rdiff-backup to run on native python.
The librsync module just won't compile without a complete
rewrite that takes out all the unixisms.
btw, if you want rdiff-backup packages for windows you can get them
here:

http://sol1.net/~dave/backup/

nice job.


rdiff-backup is win32->unix only at this stage (unix<->unix) is fine.

Wouldn't be "unisono" a tool (base) for (currently missing) restore?

quite possible we could make a win32 compatible version of
rdiff-backup, but I don't have the resources for that yet.
dave


To ease use and circumvent the first bloody steps and noses
i modifed the bat a bit:


rdiff-backup.bat
(It should be better named "rdiff-backup.cmd" as
it will make no sense on a windows95 box, or?)



< at > echo off
< at > setlocal

set src=.
set dst=zoc < at > 10.10.10.1::/home/zoc/backups
if not "%1"=="" set src=%1
if not "%2"=="" set dst=%2

set PRIVATEKEYFILE=sloth.PPK



::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: keep fingers off below this line ::::::::::::::::::::::
for /F "tokens=1*" %%a in ("%0") do set defaultpath=%%~dpa


set RDIFF-PATH=%defaultpath%

set PYTHONHOME=%RDIFF-PATH%
set PYTHONPATH=%RDIFF-PATH%
set PATH=%RDIFF-PATH%\bin;%path%

pushd %RDIFF-PATH%


if not exist %PRIVATEKEYFILE% call :genkey


echo on
mount -m > oldmounts.bat

umount -A

mount -f -s -b %RDIFF-PATH% /

set PLINKOPT=-x -a -T
python2.3.exe -S %RDIFF-PATH%\rdiff-backup --remote-schema 'plink %PLINKOPT% -C -i %PRIVATEKEYFILE% %%s rdiff-backup --server' "%src%" "%dst%" %3 %4 %5 %6 %7 %8 %9

umount -A

call oldmounts.bat

::if exist oldmounts.bat del oldmounts.bato

< at > goto :EOF


::::::::::::::::::::::::::::::::::::::::::::::::::::::
:genkey
< at > echo ################################################
< at > echo Please generate the ssh key file '%PRIVATEKEYFILE%'
< at > echo and store the public key on the unix server
< at > echo into ~/.ssh/authorized_keys (permissions: chmod 600)
< at > echo Try it with "plink -v -i %PRIVATEKEYFILE% user < at > server ls'
< at > echo to store the host key. Else you'll get unexpected results.
< at > echo ################################################
< at > pause
< at > start /wait puttygen %PRIVATEKEYFILE%

< at > goto :EOF


HTH

Rainer

Post rdiff-backup cleint for windows 32 
Rainer Zocholl wrote:
To ease use and circumvent the first bloody steps and noses
i modifed the bat a bit:


great stuff, I was waiting for a batch guru to make it nicer.
I will see if I can add the updates and make a new setup.exe.
although its easy for anyone on windows to do it, the iss file is
included and you just need a copy of inno setup.

dave

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB