[ale] rsync issues

Michael H. Warfield mhw at WittsEnd.com
Sat Dec 5 09:56:46 EST 2009


On Sat, 2009-12-05 at 00:31 -0500, Robert Coggins wrote: 
> I was trying the -av at first but I decided I would forego the -go part
> of -a due to the destination being a cifs share.  (sorry I didn't
> mention that at first)

That's an important little detail there.  At one time we did have a
problem in Samba that manifested itself as rsync recopying data.  Had
something to do with the time stamps and has since (I believe) been
fixed.

Wrt, the suggestions to use -av...  This probably doesn't apply to a
cifs share, IAC, but...  For those of you using rsync on *NIX to *NIX,
be aware at -av might not do everything you would like.  For one thing,
it does NOT preserve hard links and will result in two (or more) files
on the target instead of one hard-linked file.  It also does not
preserve extended attributes (which DEFINITELY does NOT apply to a CIFS
share).  Depending on what you are doing, you may want to a -H to
preserve hard links, and -A (and maybe also -X) for extended attributes.
When I'm going ext3 to ext3, I'm always using -avAHX.

> Rob

Mike

> Jim Popovitch wrote:
> > On Sat, Dec 5, 2009 at 00:06, Robert Coggins <ale at cogginsnet.com> wrote:
> >> good evening all,
> >>
> >> If I run the following command 2 times in a row I should have data
> >> transferred only the first time right?
> >>
> >> rsync -rlptDv /mnt/dir1 /mnt/dir2
> > 
> > Try:  rsync -av /mnt/dir1 /mnt/dir2
> > 
> > hth,
> > 
> > -Jim P
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org
> > http://mail.ale.org/mailman/listinfo/ale
> > See JOBS, ANNOUNCE and SCHOOLS lists at
> > http://mail.ale.org/mailman/listinfo
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
> 
-- 
Michael H. Warfield (AI4NB) | (770) 985-6132 |  mhw at WittsEnd.com
   /\/\|=mhw=|\/\/          | (678) 463-0932 |  http://www.wittsend.com/mhw/
   NIC whois: MHW9          | An optimist believes we live in the best of all
 PGP Key: 0x674627FF        | possible worlds.  A pessimist is sure of it!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 482 bytes
Desc: This is a digitally signed message part
Url : http://mail.ale.org/pipermail/ale/attachments/20091205/4336ebec/attachment.bin 


More information about the Ale mailing list