Re: Don't follow bind mounts?

2013-05-19 Thread Wayne Davison
On Thu, May 16, 2013 at 12:33 PM, Shachar Shemesh shac...@shemesh.bizwrote:

  My personal solution is to bind-mount the root of the file system to a
 neutral location, and rsync from there.


That's a great solution!  The only negative I can see is for a non-admin
who doesn't have permission to do the temporary bind mount.

For those that need a non-privileged method, check out the mnt-excl perl
script in the support directory -- it provides a method of generating
excludes from /proc/mounts.  Its comments also mention an even simpler,
filter-option-based solution that will work for some setups (since filters
support absolute paths).

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

[Bug 9894] Rsync can silently zero out chunks in a file

2013-05-19 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=9894

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

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME

--- Comment #1 from Wayne Davison way...@samba.org 2013-05-19 18:50:19 UTC ---
Rsync marks a file with a read error with a checksum that doesn't match the
file content so that the receiver knows that the file it generated is not
valid.

-- 
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: Using rsync to just -resync permissions and ownership?

2013-05-19 Thread Wayne Davison
On Tue, May 14, 2013 at 6:09 PM, Carl Brewer c...@bl.echidna.id.au wrote:

 so --archive will overwrite permissions on files that it's not replacing?


Yes, but you need to be very sure that it doesn't overwrite changed files
that you wanted to keep.  For safety, you can use --backup along with
--backup-dir and check the backup files to see if anything was superseded
that shouldn't be.

However if I were wanting to just reset permissions, I'd use
the file-attr-restore perl script in the support directory.  It parses the
output of a find -ls run (which is generated on the host that has the good
permissions).  It does not try to fix up any xattrs or acls, though (if you
should need that).

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

[Bug 8838] rsync daemon chooses wrong destination place if space and the module name is part of it

2013-05-19 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=8838

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

   What|Removed |Added

 Status|NEW |ASSIGNED

--- Comment #7 from Wayne Davison way...@samba.org 2013-05-19 19:56:15 UTC ---
It is the intention of --protect-args (-s) to avoid such space splitting.  The
manpage in the cited section mentions that the space-splitting methods are
old, and later on talks about how -s can be used to avoid them.  Those that
are using newer versions of rsync should be using the non-deprecated, multi-arg
calling syntax, OR the legacy parsing that is provided by the (usually) default
--no-protect-args behavior.  So, I consider this a bug in --protect-args.

I'm looking at a patch similar to the last-proposed one.

-- 
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 9860] Fix Android build

2013-05-19 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=9860

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

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #4 from Wayne Davison way...@samba.org 2013-05-19 21:28:47 UTC ---
Thanks for the nice patch set.  I snagged even newer config.{guess,sub} files
from the GNU folks, and applied the other patches.  Will commit this soon.

-- 
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: License of atomic-rsync

2013-05-19 Thread Wayne Davison
On Mon, May 6, 2013 at 12:58 AM, Kamil Dziedzic arve...@klecza.pl wrote:

 On what license is released atomic-rsync script?
 (rsync-3.0.9/support/atomic-rsync)


I never assigned it any particular license, so feel free to use it as you
see fit.

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

[Bug 9789] rsync hangs when NTP update system clock time

2013-05-19 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=9789

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

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #2 from Wayne Davison way...@samba.org 2013-05-19 22:55:05 UTC ---
I'm checking in a change to the msleep() function that will ensure that a
backward movement in time doesn't generate a huge sleep.  These 2 new lines are
being added after the call to gettimeofday(t2, NULL):

+if (t2.tv_sec  t1.tv_sec)
+t1 = t2; /* Time went backwards, so start over. */

This fix will be released in 3.1.0.

-- 
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: rsync to sync time without attempting to modify the content

2013-05-19 Thread Wayne Davison
On Tue, Apr 2, 2013 at 12:07 PM, Brice Rebsamen brice.rebsa...@gmail.comwrote:

 So what I want, is to be able to compare files this way:

 if the file does not exist at the destination, then transfer it with
 timestamps (rsync -t)
 otherwise:
 if timestamps and sizes are different:
 if md5sums match
 if the source time stamp is earlier than the destination
 timestamp
 update the timestamp of the destination
 otherwise report (in a log file or something so that I can come
 back to those later)


You can use rsync to help with that, but it won't do it for you.  For
instance, the first part can be done by specifying --ignore-existing (so
that rsync just copies in missing files).  You could then get a list of
files that differ in their timestamp by running a --dry-run with
--itemize-changes.  If you use --checksum, it will differentiate
between identical files and those that are different, but it will take a
huge amount of time to checksum all files.  Instead, you may want to just
have rsync list all the files that differ by time and you then put them
into a --files-from file for rsync to check via --dry-run and --checksum.

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

Any plans for a 3.1.0 release(-date)?

2013-05-19 Thread Matthias Schniedermeyer
Hi


If i'm reading git right(git log v3.0.9..) the development branch that 
will eventually result in 3.1.0 is nearly 5 years in the making.

Personally i'm anticipating the fallocate support, as XFS is great at 
preallocateing (fallocating even a several gigabyte big file only takes 
milliseconds) which reduces fragmentation especially when the copy 
operation takes time.




-- 

Matthias
-- 
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 9660] rsync --daemon --bwlimit does not work on server side

2013-05-19 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=9660

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

   What|Removed |Added

 Status|NEW |ASSIGNED

--- Comment #2 from Wayne Davison way...@samba.org 2013-05-19 23:29:26 UTC ---
The --bwlimit option is understood when starting the daemon, but the value
isn't shared with the client, so any limiting that the client side would
normally be in charge of won't happen.  If you're wanting to force --bwlimit to
a particular value, your only option is probably to write a pre-xfer exec
script that scans the args and dies with an error if bwlimit isn't right.

What we need to do for the future is make the daemon side send any in-effect
bwlimit to the client in the protocol at startup.

-- 
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 rsync batch operation

2013-05-19 Thread Wayne Davison
On Thu, Feb 21, 2013 at 2:11 PM, Jason Keltz j...@cse.yorku.ca wrote:

 As far as I understand, even though rsync is running on the client, the
 server is trying to write the batch file locally?


No, the batch file is always output by whatever side is running the rsync
command.  You either need to specify a path for the batch file (to avoid a
read-only directory), or you have your transfer reversed and you're trying
to update the wrong way.

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

contribute to rsync

2013-05-19 Thread garvit sharma
Hello All,

   Myself Garvit Sharma working in hyderabad central
university(HCU) at DCIS. I have started using rsync to sync the data and i
found it very interesting. After using rsync a lot i realized to contribute
to rsync by adding some extra features into it. Every time for
synchronization we need to do it manually by executing command on the
command line but instead of doing it manually imagine if it does
automatically sync whenever it find changes in the single file.
To do this we need to start a daemon on both the source and destination and
these daemon will check the time stamp of last modification of the
directory we want and if it finds the new time stamp then it will sync.

The above mentioned idea is my own and i have already started reading and
understanding the source of rsync. Please give your comments, your comments
matters a lot for me.

Thanks,

-- 
Regards

Garvit Sharma
Computer Science and Engineering
UG Third year
LNM IIT, Jaipur

*No Body is a Scholar by birth, its only hard work and strong determination
that makes him master.*
*
*
-- 
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: contribute to rsync

2013-05-19 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

You are looking for lsyncd.

On 05/19/13 23:19, garvit sharma wrote:
 Hello All,
 
 Myself Garvit Sharma working in hyderabad central university(HCU)
 at DCIS. I have started using rsync to sync the data and i found it
 very interesting. After using rsync a lot i realized to contribute
 to rsync by adding some extra features into it. Every time for
 synchronization we need to do it manually by executing command on 
 the command line but instead of doing it manually imagine if it
 does automatically sync whenever it find changes in the single
 file. To do this we need to start a daemon on both the source and
 destination and these daemon will check the time stamp of last
 modification of the directory we want and if it finds the new time
 stamp then it will sync.
 
 The above mentioned idea is my own and i have already started
 reading and understanding the source of rsync. Please give your
 comments, your comments matters a lot for me.
 
 Thanks,
 
 -- Regards
 
 Garvit Sharma Computer Science and Engineering UG Third year LNM
 IIT, Jaipur
 
 /No Body is a Scholar by birth, its only hard work and strong 
 determination that makes him master./ / /
 
 

- -- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
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.19 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlGZmdAACgkQVKC1jlbQAQc0ZgCfeI5nhbOzw33rpj05tWVjYII3
7g4AoLTI14QopBnQ+Rd76AwB4Hk1PriG
=jRtY
-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


Re: contribute to rsync

2013-05-19 Thread Yan Seiner

garvit sharma wrote:

Hello All,

   Myself Garvit Sharma working in hyderabad central 
university(HCU) at DCIS. I have started using rsync to sync the data 
and i found it very interesting. After using rsync a lot i realized to 
contribute to rsync by adding some extra features into it. Every time 
for synchronization we need to do it manually by executing command on 
the command line but instead of doing it manually imagine if it does 
automatically sync whenever it find changes in the single file.
To do this we need to start a daemon on both the source and 
destination and these daemon will check the time stamp of last 
modification of the directory we want and if it finds the new time 
stamp then it will sync.


The above mentioned idea is my own and i have already started reading 
and understanding the source of rsync. Please give your comments, your 
comments matters a lot for me.


Look at rsnapshot and unison

http://www.cis.upenn.edu/~bcpierce/unison/
http://www.rsnapshot.org/


--
Engineer for hire
Contract management, administration, training
http://www.seiner.com/engineer/resume.pdf


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


IRC

2013-05-19 Thread garvit sharma
Hello All,

  Is there any irc group for rsync ?. If it does exist
please let me know.

Thanks,

-- 
Regards

Garvit Sharma
Computer Science and Engineering
UG Third year
LNM IIT, Jaipur

*No Body is a Scholar by birth, its only hard work and strong determination
that makes him master.*
*
*
-- 
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: IRC

2013-05-19 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

#rsync on irc.freenode.net

On 05/20/13 00:53, garvit sharma wrote:
 Hello All,
 
 Is there any irc group for rsync ?. If it does exist please let me
 know.
 
 Thanks,
 
 -- Regards
 
 Garvit Sharma Computer Science and Engineering UG Third year LNM
 IIT, Jaipur
 
 /No Body is a Scholar by birth, its only hard work and strong 
 determination that makes him master./ / /
 
 

- -- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
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.19 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlGZrvkACgkQVKC1jlbQAQfiBQCgnzTqIjGE7+AcD2qH9zwlDoiz
YBYAnRoFjd6vSy6shUg/VAGvreCxvwbe
=NvxC
-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