BackupPC-users

[BackupPC-users] pre-xfer and post-xfer exec

2008-12-10 18:40:17
Subject: [BackupPC-users] pre-xfer and post-xfer exec
From: Matthias Meyer <Matthias.Meyer AT gmx DOT li>
To: backuppc-users AT lists.sourceforge DOT net
Date: Thu, 11 Dec 2008 00:38:37 +0100
Jean-Michel Beuken wrote:

> hello,
> 
> I have tried to use  "pre-xfer exec"  with rsyncd / cygwin
> 
> I have created a special module to restore in a unique folder  (
> d:/BackupPC )
> 
> ****************************
> 
> $ cat /etc/rsyncd.conf
> ....
> 
> [RESTORE]
> path = /cygdrive/d/BackupPC
> auth users = rbackuppc
> secrets file = /etc/rsyncd.secrets
> read only = false
> write only = false
> pre-xfer exec = /bin/pre-exec.sh
> post-xfer exec = /bin/post-exec.sh
> 
> ****************************
> 
> I have respected the recipe described in
> "http://www.itefix.no/i2/node/11306";
> 
> ****************************
> 
> in "/bin/pre-exec.sh" :
> 
> # Shell script for the pre-exec operaions
> cmd /c "c:\cygwin\bin\pre-exec.cmd"
> exit 0
> 
> in "/bin/pre-exec.cmd" :
> 
> @ECHO OFF
> D:
> CD BackupPC
> DEL /F /S /Q *
> 
> ****************************
> 
> I start the restore from CGI interface but it fails :
> 
> ****************************
> 
> Contenu du fichier /data/BackupPC/pc/1h0.030/RestoreLOG.22.z, modifié le
> 2008-12-10 19:54:45
> 
> Connected to 130.104.231.24:873, remote version 30
> Negotiated protocol version 28
> Connected to module RESTORE
> Sending args: --server --super --numeric-ids --perms --owner --group -D
> --links --hard-links --times --block-size=2048 --relative --ignore-times
> --recursive . RESTORE_1H0.030/
> Sending /beuken/Favorites/Radio Station Guide.url (remote=/Radio Station
> Guide.url) type = 0
>   restore   700  1008/513         197 /Radio Station Guide.url
> Remote[1]: pre-xfer exec returned failure (32256)
> Remote[1]: rsync error: requested action not supported (code 4) at
> /home/lapo/packaging/rsync-3.0.4-1/src/rsync-3.0.4/clientserver.c(840)
> [receiver=3.0.4]
> Read EOF: Connection reset by peer
> Tried again: got 0 bytes
> Done: 1 files, 197 bytes
> restore failed: Unable to read 4 bytes
> 
> ****************************
> 
> any idea ?
> 

I run pre-xfer successfully under Win XP but has no luck with Vista.
Did you use XP or Vista?
Maybee "#! /bin/sh" is necessary in the first line of your
"/bin/pre-exec.sh". I've read that in one thread somewhere.
Did your *-exec.sh have execution rights? Try "ls -alh /bin/*exec.sh"

br
Matthias
-- 
Don't panic


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

<Prev in Thread] Current Thread [Next in Thread>