[scponly] rsync --only-write-batch with scponly

demo at itmanagement.net demo at itmanagement.net
Wed Jul 18 17:47:29 EDT 2007


I did come upp with a quick-fix just to get it running I did first patch
the 4.6 source tree with a patch from
ftp://shammash.homelinux.org/debian/scponly/


--- scponly-4.6_2.orig/helper.c 2007-07-18 23:06:30.000000000 +0200
+++ scponly-4.6_2/helper.c  2007-07-18 23:07:09.000000000 +0200
@@ -159,6 +159,7 @@
            "--delete_after",
            "--partial",
            "--progress",
+           "--only-write-batch=X",
            NULL    /* last element must be NULL */
        };


/Ramses

> Hi!
>
> I've a strange problem when i run rsync in batch mode, but only with the
> option --only-write-batch. It does not fail when I run with option
> --write-batch.
>
> Unfortunately I have to push backups from a couple of Windowsmachines and
> I would like to create batchfiles and not apply them on the destination
> tree before I've transferred them to the destination server. To be able to
> do this I use cygwin with rsync and run the scripts from that environment.
> In this situation I would be very, very happy if I could use scponly in a
> chrooted environment on my backupserver.
>
> Output from authlog:
>
>
> Jul 18 17:35:32 secretserver scponly[15638]: option --only-write-batch=X
> is not permitted for use with /usr/bin/scp (username: username(1021),
> IP/port: 172.17.17.3 1044 53463)
> Jul 18 17:35:32 secretserver scponly[15638]: requested command
> (/usr/bin/rsync --server -vlogDtpr --delete --only-write-batch=X srcdir
> destdir) tried to use disallowed argument (username: username(1021),
> IP/port: 172.17.17.3 1044 53463))
>
> I've seen a couple of bugreports with rsync and --partial and it seems to
> me that my problem belongs to the same category as those. One example is
> here:
>
> https://lists.ccs.neu.edu/pipermail/scponly/2006-May/001365.html
>
> /Ramses
>
>
>
> _______________________________________________
> scponly mailing list
> scponly at lists.ccs.neu.edu
> https://lists.ccs.neu.edu/bin/listinfo/scponly
>





More information about the scponly mailing list