Re: Source directory without a trailing slash

2010-04-29 Thread David Schoen
On 29 April 2010 10:06, Matt McCutchen m...@mattmccutchen.net wrote:

 On Wed, 2010-04-28 at 22:24 +1000, David Schoen wrote:
  Also when I use rsync I like to put slashes on the end of all paths as
  it works closer to the way you're thinking, e.g.:
  rsync -av /path/to/source/directory/ /path/to/destination/directory/
 
  other wise you will probably end up with two copies after your second
  run, one in /path/to/destination/directory and the second in
  /path/to/destination/directory/directory . Which probably isn't what
  you want.

 I believe the behavior you describe is a bug.  rsync src dest should
 always copy to dest/src .  However, if dest does not exist yet /and/ src
 happens to be empty, solo file mode will trip and the source path will
 be ignored.  This is a pointless inconsistency.  I think an empty
 directory should not be regarded as a solo file.  In commit a7d461f,
 Wayne changed a comment in get_local_name to suggest that but apparently
 did not change the code to match.


You're right, it does. Either I have a faulty memory or at some point I've
used a buggy version. Thanks for pointing this out :)
-- 
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

Device not configured (explanation)

2010-04-29 Thread Henri Shustak
I am involved with the development of LBackup http://www.lbackup.org

Recently there was a post to the lbackup-dicussion mailing list. 
http://tinyurl.com/lbackup-discussion-device-not

Within the post they reported the following error:

 rsync: read 
 /Volumes/Drobo_HD/lbackups/theserver.Homes/Section.0/Faculty/andrewmac/.DS_Store:
  Device not configured (6)

I am curious to know if anyone else has seen this error on Mac OS X. In 
addition, is any one able to shed some light on what conditions may cause this 
error to occur?

Any assistance, pointers, advice would be much appreciated. Should you need 
more information then please let me know what would be helpful.


---
This email is protected by LBackup
http://www.lbackup.org
-- 
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: Device not configured (explanation)

2010-04-29 Thread Matt McCutchen
On Fri, 2010-04-30 at 13:32 +1200, Henri Shustak wrote:
  rsync: read 
  /Volumes/Drobo_HD/lbackups/theserver.Homes/Section.0/Faculty/andrewmac/.DS_Store:
   Device not configured (6)
 
 I am curious to know if anyone else has seen this error on Mac OS X.
 In addition, is any one able to shed some light on what conditions may
 cause this error to occur?

As you might have guessed, that error is coming from the filesystem and
is not rsync's fault; copying the file with cp should have similar
chances of incurring the error.  The symbolic name for errno 6 is ENXIO,
and the Mac OS X read(2) man page documents two cases in which it
occurs:

 [ENXIO]An action is requested of a device that does not exist..

 [ENXIO]A requested action cannot be performed by the device.

http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man2/read.2.html

All I can guess is that there is something wrong with the destination
disk or filesystem.  You might search the web for `mac os x device not
configured' for more hints.

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


Count of files to be transferred

2010-04-29 Thread Ryan Joseph
I'm making a GUI for rsync and having some problems getting a reliable 
indication of the files that will be transferred (so I can make a progress bar 
from the results). I didn't see rysnc offered this so my plan has been to get a 
list of files that will be transferred and count them as rsync reports them 
using the -v option thus getting a ratio I could make a progress bar from.

The problem is I don't see there is a way to have rsync tell me which files 
will be transferred so I can count the list. I tried using the --list-only 
option to count the files first but I can't get it to report the same number of 
files as are actually transferred when I don't use the option. For example the 
same command with --list-only is listing 8000 files and when I remove the 
command 0 files are transferred (which is correct). Shouldn't the command using 
--list-only report 0 files also as that's how many will be transferred?

Does anyone know a trick to get this information or some other way to get a 
reliable progress meter of the files transferred? 

Thanks for any ideas you have.

Regards,
Josef

-- 
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: Count of files to be transferred

2010-04-29 Thread Matt McCutchen
On Fri, 2010-04-30 at 12:13 +0700, Ryan Joseph wrote:
 I'm making a GUI for rsync and having some problems getting a reliable
 indication of the files that will be transferred (so I can make a
 progress bar from the results). I didn't see rysnc offered this so my
 plan has been to get a list of files that will be transferred and
 count them as rsync reports them using the -v option thus getting a
 ratio I could make a progress bar from.

 The problem is I don't see there is a way to have rsync tell me which
 files will be transferred so I can count the list.

Rsync determines which of the files in the file list need a data
transfer as it goes, so the only way to get the count in advance is to
do a separate dry run.  Then you could take the Number of files
transferred from --stats output.

Alternatively, you could base the progress bar on the total number of
entries in the file list.  The --progress option does this, but it won't
be accurate if incremental recursion is enabled.

 I tried using the --list-only option to count the files first but I
 can't get it to report the same number of files as are actually
 transferred when I don't use the option. For example the same command
 with --list-only is listing 8000 files and when I remove the command 0
 files are transferred (which is correct). Shouldn't the command using
 --list-only report 0 files also as that's how many will be
 transferred?

No.  --list-only lists all the source files and does not use the
destination at all.  I think it was originally intended for listing
files on an rsync daemon.  It can also be useful for testing.

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