From: Rodolfo Medina on
Hi to all Debian users.

I wish to know why rsync behaves in two different ways when working between two
pcs connected by ethernet cable and, instead, when copying files from a pc to a
pendrive. Here's the output in the former case:

$ rsync -vrtul --delete Mail News 192.168.0.2:/home/rodolfo
rodolfo(a)192.168.0.2's password:
building file list ... done

sent 75797 bytes received 20 bytes 16848.22 bytes/sec
total size is 27753551 speedup is 366.06


and in the second:


$ rsync -vrtul --delete Mail News /mnt/pendrive2
building file list ... done
Mail/comp.emacs/
Mail/comp.emacs/324
Mail/comp.emacs/325
Mail/comp.emacs/326
Mail/comp.emacs/327
Mail/comp.emacs/328
Mail/comp.emacs/329
Mail/comp.emacs/330
Mail/comp.emacs/331
Mail/comp.emacs/332
Mail/comp.emacs/333
Mail/comp.emacs/334
Mail/comp.emacs/335
Mail/comp.emacs/336

[...]

News/drafts/drafts/21
News/drafts/queue/
News/marks/
News/marks/freenews.netfront.net-ephemeral/
News/marks/news.gmane.org-ephemeral/gmane.linux.debian.user/
News/marks/news.gmane.org-ephemeral/gmane.linux.debian.user/.marks
News/marks/news.gmane.org/
News/marks/news.gmane.org/gmane.linux.debian.user/
News/marks/news.gmane.org/gmane.linux.debian.user/.marks
News/marks/news.gnus.org-ephemeral/
News/marks/news.readfreenews.net-ephemeral/

sent 7616774 bytes received 30996 bytes 728359.05 bytes/sec
total size is 27753551 speedup is 3.63


The second output contain about 1,500 lines!, and the first only 5!

Can anybody explain why this difference, and how to make rsync behave with the
pendrive the same as with ethernet cable?

Thanks for any help
Rodolfo


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/87iq3fsvw6.fsf(a)gmail.com
From: Jordan Metzmeier on
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 08/12/2010 11:17 AM, Rodolfo Medina wrote:
> Hi to all Debian users.
>
> I wish to know why rsync behaves in two different ways when working between two
> pcs connected by ethernet cable and, instead, when copying files from a pc to a
> pendrive. Here's the output in the former case:
>
> $ rsync -vrtul --delete Mail News 192.168.0.2:/home/rodolfo
> rodolfo(a)192.168.0.2's password:
> building file list ... done
>
> sent 75797 bytes received 20 bytes 16848.22 bytes/sec
> total size is 27753551 speedup is 366.06
>
>
> and in the second:
>
>
> $ rsync -vrtul --delete Mail News /mnt/pendrive2
> building file list ... done
> Mail/comp.emacs/
> Mail/comp.emacs/324
> Mail/comp.emacs/325
> Mail/comp.emacs/326
> Mail/comp.emacs/327
> Mail/comp.emacs/328
> Mail/comp.emacs/329
> Mail/comp.emacs/330
> Mail/comp.emacs/331
> Mail/comp.emacs/332
> Mail/comp.emacs/333
> Mail/comp.emacs/334
> Mail/comp.emacs/335
> Mail/comp.emacs/336
>
> [...]
>
> News/drafts/drafts/21
> News/drafts/queue/
> News/marks/
> News/marks/freenews.netfront.net-ephemeral/
> News/marks/news.gmane.org-ephemeral/gmane.linux.debian.user/
> News/marks/news.gmane.org-ephemeral/gmane.linux.debian.user/.marks
> News/marks/news.gmane.org/
> News/marks/news.gmane.org/gmane.linux.debian.user/
> News/marks/news.gmane.org/gmane.linux.debian.user/.marks
> News/marks/news.gnus.org-ephemeral/
> News/marks/news.readfreenews.net-ephemeral/
>
> sent 7616774 bytes received 30996 bytes 728359.05 bytes/sec
> total size is 27753551 speedup is 3.63
>
>
> The second output contain about 1,500 lines!, and the first only 5!
>
> Can anybody explain why this difference, and how to make rsync behave with the
> pendrive the same as with ethernet cable?
>
> Thanks for any help
> Rodolfo
>
>

I am not sure the exact reason, but I am betting on something along the
lines of the usb stick being formatted in a non-UNIX filesystem, such as
vfat. I know this is often the case when preserving permissions, which
you are not... So perhaps the time preservation?

- --
Jordan Metzmeier

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iQIcBAEBCAAGBQJMZBG9AAoJEKj/C3qNthmTmK4P/3DlhdTpYyCeWGvvMSrp0xWX
hAZEL1YXvV1sDiUPck2oucdNbnTHXurB4j/LnkLRrwgu5s+tGxtrO7H822ILB1B2
ZkvjymC8IjShrQ9YwKbXfZg5GMSXvDqaP2Eu/rRw8m5HI/1zprBmDKCyviRjZ7Vr
lSr7VmrqIOFqfoS8bYB41wblNzpzsDR9dpaVl3wZ0M67sIhsVBy6570VEJMm1rF4
cymrS57h8hwBt9zp3vZVk7gD1AqNz61CwdUDwuNfP7y/BADu6iyk4Ab8mo25BU62
TpKBjtnU9c74gsm4HWYaYSAdEl5OQxG7nCTHb2mMng1NT7iYpApRtR/JbkdAPcA2
rOb8RcJ/YmxC/XDd7A1xCtuCN9ZEP1nfP5zSCwVQi6WuW1dgbOqyRR3AksK28fCg
7H3ES8lMLju1BmS0AtK2ZndJm3TC5BWpL76fyNzXdo/lGh0d4Rpm+Nl9Xxx5lZY6
TEDRC95LOFBHlr9YHos/LepHbA5p5kp0PRM1vd3R2MclLt7PFQUp8Jb9Fjhsw0fU
5/XRiPkORQq0Npnj637iKFmWhqOoZ3u9WIlZuKsLjBO0FcnQZSRGA81b1YVgIgsd
Paq03B1yzJ9vlFY94glFNdGY8bvb9hTbG3a5oZ2Og6AENFaY+uBCtiwJTf5d9OuL
KjDllGD5SrUQXjixRhVQ
=vu21
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/4C6411BD.2000002(a)gmail.com
From: Rodolfo Medina on
Rodolfo Medina <rodolfo.medina(a)gmail.com> writes:

On 08/12/2010 11:17 AM, Rodolfo Medina wrote:

>>> I wish to know why rsync behaves in two different ways when working between
>>> two pcs connected by ethernet cable and, instead, when copying files from a
>>> pc to a pendrive. Here's the output in the former case:
>>>
>>> $ rsync -vrtul --delete Mail News 192.168.0.2:/home/rodolfo
>>> rodolfo(a)192.168.0.2's password:
>>> building file list ... done
>>>
>>> sent 75797 bytes received 20 bytes 16848.22 bytes/sec
>>> total size is 27753551 speedup is 366.06
>>>
>>>
>>> and in the second:
>>>
>>>
>>> $ rsync -vrtul --delete Mail News /mnt/pendrive2
>>> building file list ... done
>>> Mail/comp.emacs/
>>> Mail/comp.emacs/324
>>> Mail/comp.emacs/325
>>> Mail/comp.emacs/326
>>> Mail/comp.emacs/327
>>> Mail/comp.emacs/328
>>> Mail/comp.emacs/329
>>> Mail/comp.emacs/330
>>> Mail/comp.emacs/331
>>> Mail/comp.emacs/332
>>> Mail/comp.emacs/333
>>> Mail/comp.emacs/334
>>> Mail/comp.emacs/335
>>> Mail/comp.emacs/336
>>>
>>> [...]
>>>
>>> News/drafts/drafts/21
>>> News/drafts/queue/
>>> News/marks/
>>> News/marks/freenews.netfront.net-ephemeral/
>>> News/marks/news.gmane.org-ephemeral/gmane.linux.debian.user/
>>> News/marks/news.gmane.org-ephemeral/gmane.linux.debian.user/.marks
>>> News/marks/news.gmane.org/
>>> News/marks/news.gmane.org/gmane.linux.debian.user/
>>> News/marks/news.gmane.org/gmane.linux.debian.user/.marks
>>> News/marks/news.gnus.org-ephemeral/
>>> News/marks/news.readfreenews.net-ephemeral/
>>>
>>> sent 7616774 bytes received 30996 bytes 728359.05 bytes/sec
>>> total size is 27753551 speedup is 3.63
>>>
>>>
>>> The second output contain about 1,500 lines!, and the first only 5!
>>>
>>> Can anybody explain why this difference, and how to make rsync behave with
>>> the pendrive the same as with ethernet cable?


Jordan Metzmeier <titan8990(a)gmail.com> writes:

>> I am not sure the exact reason, but I am betting on something along the
>> lines of the usb stick being formatted in a non-UNIX filesystem, such as
>> vfat. I know this is often the case when preserving permissions, which
>> you are not... So perhaps the time preservation?


Rodolfo:

> You seem to be right: the problem seems to be solved adding in fstab
> `uid=1000'.


I spoke too early: the problem reappears at any new mounting of the pendrive.
Jordan, what do you mean by time preservation? The time of the file is the
same on te pc and on the pendrive.

Thanks
Rodolfo


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/87iq3fpxbh.fsf_-_(a)gmail.com
From: Jordan Metzmeier on
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 08/12/2010 01:14 PM, Rodolfo Medina wrote:
>> `uid=1000'.
>
>
> I spoke too early: the problem reappears at any new mounting of the pendrive.
> Jordan, what do you mean by time preservation? The time of the file is the
> same on te pc and on the pendrive.
>
> Thanks
> Rodolfo
>

That was really a shot in the dark with that statement. I had hoped
someone with more insight would chime in with more information. Anyways,
my thought was that modification time on UNIX filesystems were different
in way that rsync fails to preserve the modification time when copying
to vfat.

An easy way to check this would be to compare the modification times of
the two copies.


Regards,
- --
Jordan Metzmeier
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iQIcBAEBCAAGBQJMZDsaAAoJEKj/C3qNthmTqkEP/1C4Y0DYXHgBgnZbM47mEQCO
eKtdXtksZPcjMtq81QbQeFkIzfSpvdct4PT4m5FCKbLehQXsnhz2UMpOhp2mbzb/
1hHU5VbCzGALnL/AsKwtwaVhHiUazbQ0MIVYGOZ4XfgyQjyt8wPgi/2NiFkuHgrN
LUYZjxAN+wwiYoo5Osg47z/MAakegPpVRSjEpeLHFv6MxvKZ3gd4O5sTqg3Mt9Ep
J8J0HZOKZjaYzmFSqQedvz1Fx2xbAChqlbJjGen7LtbGLovqcl1L3AKjz6vPGZfM
4S52oncYfC1pX/7l4CEc4Z+N5MUU6kyJ7tiv6O1X3e2bawgdB8snM4POBO3WrqHd
9QKyTWKNMEvb59C/R1u26rjLK6lNoV+xLi6qWPzVTR5TJSB775UBurRqVdinqCsV
JvoZfZU6OkjhV+m4OJHfGXcTO91JStY48gKipipSrG1PaRy8GG8Phyyf9yJJuyx2
raUGgxctH1xefQxWnT2EKumPVLcWCKqr7j03GTmW1XHVTJX6fiRZUTPnujzCEeeN
lqiV2kDukQIslZTaK2nZSdeQ68tDt10C7hYwaMURP3arGBaizopisd2Ke8ktclo9
HG0a5wYhechhxU9hbcjiA2ECDkFsbG5eci0ZkRj8FKLXh1wdWRqYuzctnlZ34ab/
A8gmcjTm+gbRgk9InhoN
=GcBv
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/4C643B1A.7060608(a)gmail.com
From: Steve McIntyre on
In article <4C643B1A.7060608(a)gmail.com> you write:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA256
>
>On 08/12/2010 01:14 PM, Rodolfo Medina wrote:
>>> `uid=1000'.
>>
>>
>> I spoke too early: the problem reappears at any new mounting of the pendrive.
>> Jordan, what do you mean by time preservation? The time of the file is the
>> same on te pc and on the pendrive.
>>
>> Thanks
>> Rodolfo
>>
>
>That was really a shot in the dark with that statement. I had hoped
>someone with more insight would chime in with more information. Anyways,
>my thought was that modification time on UNIX filesystems were different
>in way that rsync fails to preserve the modification time when copying
>to vfat.
>
>An easy way to check this would be to compare the modification times of
>the two copies.

>From the rsync(1) man page:

--modify-window
When comparing two timestamps, rsync treats the timestamps as
being equal if they differ by no more than the modify-window
value. This is normally 0 (for an exact match), but you may
find it useful to set this to a larger value in some situations.
In particular, when transferring to or from an MS Windows FAT
filesystem (which represents times with a 2-second resolution),
--modify-window=1 is useful (allowing times to differ by up to 1
second).

--
Steve McIntyre, Cambridge, UK. steve(a)einval.com
Is there anybody out there?


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/E1Ojcgj-0004YE-AF(a)jack.mossbank.org.uk