[Bug 10356] New: Include rsync-no-vanished support script

2014-01-01 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=10356

   Summary: Include rsync-no-vanished support script
   Product: rsync
   Version: 3.1.1
  Platform: All
OS/Version: All
Status: NEW
  Severity: minor
  Priority: P5
 Component: core
AssignedTo: way...@samba.org
ReportedBy: jakob...@gmail.com
 QAContact: rsync...@samba.org


Bug 3653 discussed how file has vanished warnings can be silenced. Code
changes did not make it in, but Matt McCutchen wrote the rsync-no-vanished bash
wrapper script, whose final version seems to handle it correctly, using
advanced bash features:

#!/bin/bash
ignoreexit=24
ignoreout='^(file has vanished: |rsync warning: some files vanished before they
could be transferred)'
set -o pipefail
rsync $@ 21 | (egrep -v $ignoreout || true)
a=$?
if [ $a == $ignoreexit ]; then
exit 0
else
exit $a
fi

What is missing is to make that script accessible to users. I suggest to
include it in the support directory in the rsync tarball.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
-- 
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


[Bug 3653] Reduce the need for the vanished files warning

2014-01-01 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=3653

--- Comment #25 from jakob...@gmail.com 2014-01-01 15:04:58 UTC ---
What remains to be done is to make the the rsync-no-vanished script accessible
to users. I created bug 10356 about including it in the tarball.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
-- 
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


Changing permissions on existing backup source

2014-01-01 Thread Charles Marcus

Hello,

I have a system that currently uses rsync (via rsnapshot) with 
--link-dest enabled to backup our mail store...


If I change the permissions on the source maildirs, will this cause 
everything to be transferred again? Meaning, will rsync see everything 
as 'modified', thus creating a new copy of the entire mail store on the 
backup target?


Or will the newest backup directory just reflect the new permissions for 
the hardlinked files, without making new copies of everything?


--
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 gnulib/automake

2014-01-01 Thread Wayne Davison
[Sorry for the super-late reply.]

On Tue, Sep 24, 2013 at 2:40 AM, Tiziano Müller 
tiziano.muel...@stepping-stone.ch wrote:

 * Would a patch which changes the build system to automake get accepted?


I'd be glad to consider that.

* Would the inclusion of gnulib as git submodule (similar to
 libvirt's gnulib inclusion) be acceptable?


I'm not very keen on that idea for the main code.

* Would a patch which makes the rsync-daemon optional get accepted?


Yes, I believe so.  It shouldn't make things too much more complicated, and
allows the building of just the copy-tool side.

..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

Re: Changing permissions on existing backup source

2014-01-01 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The files will not be transferred but they will be stored separately
as new versions of the file even if the content is the same.
Permissions are per inode not directory entry so you can't have old
and new permissions without breaking the hard link relationship.

The easiest solution is to just do the same chmod on the most recent
backup before running the next backup.

On 01/01/2014 01:09 PM, Charles Marcus wrote:
 Hello,
 
 I have a system that currently uses rsync (via rsnapshot) with 
 --link-dest enabled to backup our mail store...
 
 If I change the permissions on the source maildirs, will this
 cause everything to be transferred again? Meaning, will rsync see
 everything as 'modified', thus creating a new copy of the entire
 mail store on the backup target?
 
 Or will the newest backup directory just reflect the new
 permissions for the hardlinked files, without making new copies of
 everything?
 

- -- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
Kevin Korb  Phone:(407) 252-6853
Systems Administrator   Internet:
FutureQuest, Inc.   ke...@futurequest.net  (work)
Orlando, Floridak...@sanitarium.net (personal)
Web page:   http://www.sanitarium.net/
PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlLEWpgACgkQVKC1jlbQAQf0EwCfW8dIPBTi27aLYjXgYNP76vk6
Tc0AoN/QARNefu6hJIdmL6rlhOYgjLXc
=JnMn
-END PGP SIGNATURE-
-- 
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


[Bug 10356] Include rsync-no-vanished support script

2014-01-01 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=10356

Wayne Davison way...@samba.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #1 from Wayne Davison way...@samba.org 2014-01-01 18:37:39 UTC ---
Good idea -- thanks.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
-- 
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


[Bug 3653] Reduce the need for the vanished files warning

2014-01-01 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=3653

Wayne Davison way...@samba.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #26 from Wayne Davison way...@samba.org 2014-01-01 18:38:33 UTC 
---
I should note that the issue with deletions being skipped has been fixed (the
file-has-vanished errors were changed into warnings).

The script support/rsync-no-vanished that will be in the next release.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
-- 
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: Question about rsyncing to a slightly different folder structure on target

2014-01-01 Thread Wayne Davison
On Tue, Dec 31, 2013 at 3:59 AM, Charles Marcus
cmar...@media-brokers.comwrote:

 On the old server, dovecot is configured to just use .../example.com/userfor 
 the maildirs.

 On the target server, I want to change this to .../
 example.com/user/Maildir


One thing you can do is to add a symlink on the sending side to point the
Maildir to '.', and then run rsync with -R --no-implied-dirs and both the
normal top-level dir and a path down to the Maildir/ (with the trailing
slash) plus an exclude of the files in the user dir and the symlink itself.
 For instance:

mkdir -p /tmp/src/user
touch /tmp/src/user/{one,two,three}
ln -s . /tmp/src/user/Maildir
rsync -aivR --no-implied-dirs \
 --include='/src/user/Maildir/' --exclude='/src/user/Maildir/Maildir' \
 --exclude='/src/user/*' \
 /tmp/./src /tmp/./src/user/Maildir/ /tmp/dest/


..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

[SCM] The rsync repository. - branch master updated

2014-01-01 Thread Rsync CVS commit messages
The branch, master has been updated
   via  d3414a7 Warn about lack of yodl2man at end of configure run.
  from  9e2e7a1 Restoring use of socketpair on cygwin.

;a=shortlog;h=master


- Log -
commit d3414a7d239413ef9b1110189bbad25f29d0f652
Author: Wayne Davison way...@samba.org
Date:   Wed Jan 1 09:56:40 2014 -0800

Warn about lack of yodl2man at end of configure run.

---

Summary of changes:
 configure.ac |5 +
 1 files changed, 5 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/configure.ac b/configure.ac
index f66e5ef..1b6412e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1108,3 +1108,8 @@ AC_OUTPUT
 AC_MSG_RESULT()
 AC_MSG_RESULT([rsync ${RSYNC_VERSION} configuration successful])
 AC_MSG_RESULT()
+if test x$HAVE_YODL2MAN != x1; then
+AC_MSG_RESULT([Note that yodl2man was not found, so pre-existing 
manpage files will be])
+AC_MSG_RESULT([used w/o change (if available) -- no .yo file changes 
will be used.])
+AC_MSG_RESULT()
+fi


-- 
The rsync repository.
___
rsync-cvs mailing list
rsync-cvs@lists.samba.org
https://lists.samba.org/mailman/listinfo/rsync-cvs


[SCM] The rsync repository. - branch master updated

2014-01-01 Thread Rsync CVS commit messages
The branch, master has been updated
   via  1b29458 Adding rsync-no-vanished script for bug 10356.
  from  d3414a7 Warn about lack of yodl2man at end of configure run.

;a=shortlog;h=master


- Log -
commit 1b29458ea404da41dfb8b668351909be1221a6e9
Author: Wayne Davison way...@samba.org
Date:   Wed Jan 1 10:35:08 2014 -0800

Adding rsync-no-vanished script for bug 10356.

---

Summary of changes:
 support/rsync-no-vanished |   15 +++
 1 files changed, 15 insertions(+), 0 deletions(-)
 create mode 100755 support/rsync-no-vanished


Changeset truncated at 500 lines:

diff --git a/support/rsync-no-vanished b/support/rsync-no-vanished
new file mode 100755
index 000..1cce75c
--- /dev/null
+++ b/support/rsync-no-vanished
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+IGNOREEXIT=24
+IGNOREOUT='^(file has vanished: |rsync warning: some files vanished before 
they could be transferred)'
+
+set -o pipefail
+
+rsync ${@} 21 | (egrep -v $IGNOREOUT || true)
+ret=$?
+
+if [[ $ret == $IGNOREEXIT ]]; then
+ret=0
+fi
+
+exit $ret


-- 
The rsync repository.
___
rsync-cvs mailing list
rsync-cvs@lists.samba.org
https://lists.samba.org/mailman/listinfo/rsync-cvs