Re: Implicit --itemize

2011-01-19 Thread Fabian Cenedese
At 07:44 18.01.2011 -0800, you wrote:
In 5.2.0.9.1.20110118091956.04afb940@localhost, on 01/18/11
   at 09:32 AM, Fabian Cenedese cened...@indel.ch said:

Hi,

Is it possible that SSH -i key could also be scanned by rsync and
interpreted as --itemize?

That is what is happening.  You have

 -e $SSH

and your shell is interpreting this as multiple arguments after expansion. 
Depending on your shell, changing this to

 -e \$SSH\

might be sufficient to avoid the issue.

I use the same construct in other scripts without having this problem.
So I think the escaping is already correct. The main reason might be
the logfile command as Matt pointed out. I will try and see.

Thanks

bye  Fabi

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Implicit --itemize

2011-01-19 Thread Steven Levine
In 5.2.0.9.1.20110119091636.04a65ae0@localhost, on 01/19/11
   at 09:17 AM, Fabian Cenedese cened...@indel.ch said:

Hi,

I use the same construct in other scripts without having this problem. So
I think the escaping is already correct. The main reason might be the
logfile command as Matt pointed out. I will try and see.

My bad.  Matt's answer is correct.  I missed the --logfile reference.  The
quoting can be an issue on non-Linux platform, but it appears that you are
running a Linux box.

Steven

-- 
--
Steven Levine stev...@earthlink.net  eCS/Warp/DIY etc.
www.scoug.com www.ecomstation.com
--

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Implicit --itemize

2011-01-18 Thread Fabian Cenedese
Hi

From reading the man pages I couldn't find such a hint, but is
there a way that --itemize is implicitely activated e.g. with using
another parameter?

Is it possible that SSH -i key could also be scanned by rsync
and interpreted as --itemize?

Can it be switched off again with --no-i? That didn't seem to have
an effect.

I used these params in a script with rsync 3.0.3pre1 on a NAS.

MYRSYNC_ARGS=-rptgo --stats --modify-window=1 --timeout=1800 
--log-file=/tmp/rsbackup.log --rsync-path=/path/to/rsync --timeout=3600
SSH=ssh -l user -ax -i /path/to/key -o ClearAllForwardings=yes -o 
StrictHostKeyChecking=no

rsync $MYRSYNC_ARGS -l --delete -e $SSH --no-i $SOURCE/mod $DEST:$SOURCE/mod 

And that still results in:
2011/01/17 20:00:08 [3918] .d..t.. server/Directory/
2011/01/17 20:00:13 [3918] f..t.. server/Directory/File
etc

Thanks for any help. rsync works as expected, it just blows up the
logfile which makes it harder to see errors. The SSH part also works
or we shouldn't get a connection to the other server.

bye  Fabi

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Implicit --itemize

2011-01-18 Thread Matt McCutchen
On Tue, 2011-01-18 at 09:32 +0100, Fabian Cenedese wrote:
 From reading the man pages I couldn't find such a hint, but is
 there a way that --itemize is implicitely activated e.g. with using
 another parameter?

 I used these params in a script with rsync 3.0.3pre1 on a NAS.
 
 MYRSYNC_ARGS=-rptgo --stats --modify-window=1 --timeout=1800 
 --log-file=/tmp/rsbackup.log --rsync-path=/path/to/rsync --timeout=3600
 SSH=ssh -l user -ax -i /path/to/key -o ClearAllForwardings=yes -o 
 StrictHostKeyChecking=no
 
 rsync $MYRSYNC_ARGS -l --delete -e $SSH --no-i $SOURCE/mod 
 $DEST:$SOURCE/mod 
 
 And that still results in:
 2011/01/17 20:00:08 [3918] .d..t.. server/Directory/
 2011/01/17 20:00:13 [3918] f..t.. server/Directory/File
 etc

From the man page:

--log-file=FILE

If specified as a client option, transfer logging will be enabled with a
default format of %i  %n%L.  See the --log-file-format option if you
wish to override this.

-- 
Matt

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html