[Bug] having parentheses in filenames causes failure
Hi, I don't know how to exactly describe the bug, but the following test-case reproduces the bug in 3.0.6 mkdir rsync-test cd rsync-test mkdir -p src/directory (name) touch src/directory (name)/somefile mkdir dest rsync --archive --dry-run --verbose src/directory (name)/ $u...@127.0.0.1:$PWD/dest/directory (name) The error is: bash: -c: line 0: syntax error near unexpected token `(' bash: -c: line 0: `rsync --server -vnlogDtpre.iLs . /tmp/rsync-test/dest/directory (name)' rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6] HTH, Geralt. -- 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: [Bug] having parentheses in filenames causes failure
On 29.12.2009 11:51, Geralt wrote: Hi, I don't know how to exactly describe the bug, but the following test-case reproduces the bug in 3.0.6 mkdir rsync-test cd rsync-test mkdir -p src/directory (name) touch src/directory (name)/somefile mkdir dest rsync --archive --dry-run --verbose src/directory (name)/ $u...@127.0.0.1:$PWD/dest/directory (name) The error is: bash: -c: line 0: syntax error near unexpected token `(' bash: -c: line 0: `rsync --server -vnlogDtpre.iLs . /tmp/rsync-test/dest/directory (name)' rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6] Try it again with -s a.k.a --protect-args added. Bis denn -- Real Programmers consider what you see is what you get to be just as bad a concept in Text Editors as it is in women. No, the Real Programmer wants a you asked for it, you got it text editor -- complicated, cryptic, powerful, unforgiving, dangerous. -- 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: [Bug] having parentheses in filenames causes failure
On Tue, Dec 29, 2009 at 3:53 AM, Geralt usr.gen...@googlemail.com wrote: Is there any reason why [--protect-args] is not the default mode? Backward compatibility. The option first appeared in 3.0.0. A future version (maybe 3.1.0, maybe something a bit later) will make it the default, with --no-s available to turn it off to allow talking to older rsync versions. ..wayne.. -- 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
rsync email notification on success and failure + Log
Hi, I have a bash script for rsync that should tranfer all my filer from one drive to the other. I would like to know how I can make the script sending me an email after the script is run and be able to know if it was a success or not and also if possible to include the log file. This is my script: !/bin/bash rsync -av --delete --log-file=/home/duffed/RSyncLog/$(date +%Y%m%d)_rsync_Multimedia.log /media/Multimedia/ /media/MultimediaBackUp Thanks a lot! Sébastien -- 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: rsync email notification on success and failure + Log
Hi, On Wed, 30 Dec 2009, Sébastien Arpin wrote: I have a bash script for rsync that should tranfer all my filer from one drive to the other. I would like to know how I can make the script sending me an email after the script is run and be able to know if it was a success or not and also if possible to include the log file. I do it this way: rsync ${ALLOPTS} ${SRC} ${DST} ${PROT} 21 RC=$? DAT2=`date +%y%m%d.%H%M` if test ${RC} = 0 -o ${RC} = 23; then grep ^Total file size: ${PROT} | \ ( read a b c d e echo ${DAT2} ${NAM} size: $d bytes. ${DST}/.gwdg-mirror ) else touch ${DST}/.gwdg-mirror fi echo end RC=${RC} ${DAT1} ${DAT2} ${PROT} MAILIT=yes if [ ${RC} = 0 ]; then NUMFIL=`grep ^Number of files transferred: ${PROT} | \ (while read n o f t X; do echo -n ${X}; done)` if [ ${NUMFIL} = 0 ]; then MAILIT=no fi fi if [ ${MAILIT} = yes ]; then V1=is uptodate V2=is a hard link V3=^backed up V4=^deleting grep -v ${V1}\|${V2}\|${V3}\|${V4} ${PROT} | \ mail -s${SUBJ} (RC=${RC}) ${MAILTO} #else # mail -s${SUBJ} (RC=${RC}) __nomail__ ${MAILTO} ${PROT} fi Viele Gruesse Eberhard Moenkeberg (emoe...@gwdg.de, e...@kki.org) -- Eberhard Moenkeberg Arbeitsgruppe IT-Infrastruktur E-Mail: emoe...@gwdg.de Tel.: +49 (0)551 201-1551 - Gesellschaft fuer wissenschaftliche Datenverarbeitung mbH Goettingen (GWDG) Am Fassberg 11, 37077 Goettingen URL:http://www.gwdg.de E-Mail: g...@gwdg.de Tel.: +49 (0)551 201-1510Fax:+49 (0)551 201-2150 Geschaeftsfuehrer: Prof. Dr. Bernhard Neumair Aufsichtsratsvorsitzender: Dipl.-Kfm. Markus Hoppe Sitz der Gesellschaft: Goettingen Registergericht: Goettingen Handelsregister-Nr. B 598 --- 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
[SCM] The rsync repository. branch, master, updated. v3.0.3-312-g4c4a296
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project The rsync repository.. The branch, master has been updated via 4c4a2962097e618480d37bb2a2714a6ecbf5 (commit) from e89a0fc094c1edc4382e1b218c7f3fd50676101d (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log - commit 4c4a2962097e618480d37bb2a2714a6ecbf5 Author: Wayne Davison way...@samba.org Date: Tue Dec 29 12:08:41 2009 -0800 Allow ./configure --with-protect-args to make -s the default. --- Summary of changes: configure.in |6 ++ options.c| 14 -- 2 files changed, 18 insertions(+), 2 deletions(-) hooks/post-receive -- The rsync repository. ___ rsync-cvs mailing list rsync-cvs@lists.samba.org https://lists.samba.org/mailman/listinfo/rsync-cvs
[SCM] The rsync repository. annotated tag, v3.0.7pre1, created. v3.0.7pre1
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project The rsync repository.. The annotated tag, v3.0.7pre1 has been created at 9a8536e532eafeec0771c588f6e7c6cd5dfefaba (tag) tagging 212dfdb960b387dce6496587eb559a6febbe4255 (commit) replaces v3.0.6 tagged by Wayne Davison on Mon Dec 21 18:34:34 2009 -0800 - Log - Version 3.0.7pre1. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAkswMDoACgkQbIWfsUuWqMXoQACgqzAn2hbWMc5gpT7OhOgi2aj0 bVkAn0htHwpB2WoyMwQL1o8OYEDRuz0X =xWSB -END PGP SIGNATURE- Wayne Davison (35): Fix a bogus free in uncache_tmp_xattrs(). Allow $RSYNC_TEST_TMP to indicate a good tmp dir for our tests. Switch from inet_aton() to inet_pton() (since we supply a compatibility Support an older AIX system that doesn't have ENOTSUP. Mention that --whole-file is not the default for a local transfer when Added solaris IPv6 checking to configure. Fixes #6438. Get section reference right. Fixes bug #6573. Fix the chmod-temp-dir test if /var/tmp doesn't exist. Rebuild proto.h if config.h changes. Avoid an dry-run error trying to stat a prior hard-link Fix daemon's conveyance of io_error value from sender. Improve error handling and get rid of a lingering fprintf(). Improve the --delete does not work without -r or -d message. Avoid type-punned compiler warnings for the byteorder.h macros Fix some man page problems Scott Kostyshak pointed out. Make sure daemon's io_timeout is used as a maximum value. Moved some --iconv text that was supposed to be in --files-from. Save first filename and linenum in case exit_cleanup() recurses. Add IPv6 detection on cygwin. Don't (wrongly) retouch dir permissions with --fake-super. Beginning work on a 3.0.7 release. Use seteuid() (if available) when using setuid(). Mention the newly cherry-picked changes. Include info on who is exiting. Get rid of some unused externs. Avoid -u option to id since solaris doesn't support it. Use 0-length MSG_DATA when MSG_NOOP is not available Added an am_receiver variable. Improve --timeout method to take into account all socket I/O that is Don't die if inflate() returns Z_BUF_ERROR in see_deflate_token(). Mention latest --timeout fixes. Mention the compress fix. Defer forwarding messages during the forwarding of flist data. Ensure that the generator gets notified about an I/O error for the dir Preparing for release of 3.0.7pre1 --- hooks/post-receive -- The rsync repository. ___ rsync-cvs mailing list rsync-cvs@lists.samba.org https://lists.samba.org/mailman/listinfo/rsync-cvs
[SCM] The rsync repository. annotated tag, v3.0.7pre2, created. v3.0.7pre2
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project The rsync repository.. The annotated tag, v3.0.7pre2 has been created at 113330348d1fd483dfff37f9ae1e2ed8fe1c4edf (tag) tagging 2f01fb11526f4a8fed3e5e6189706845c04136f3 (commit) replaces v3.0.7pre1 tagged by Wayne Davison on Thu Dec 24 08:35:42 2009 -0800 - Log - Version 3.0.7pre2. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAkszmF4ACgkQbIWfsUuWqMXooACeI4TxFOFLPUOv8JZMrPOAAmZ3 azAAnigC9TtfYW8X9oNakHeHht5agh9C =upVf -END PGP SIGNATURE- Wayne Davison (2): Revert to having the receiver handle timeouts on the receiving side. Preparing for release of 3.0.7pre2 --- hooks/post-receive -- The rsync repository. ___ rsync-cvs mailing list rsync-cvs@lists.samba.org https://lists.samba.org/mailman/listinfo/rsync-cvs