Martin and Steve,

Thanks for further ideas - brilliant!  

Am rushing out in a moment so will try Wed or Thursday!





Ed

-----------------------------------------



-----Original Message-----
From: Martin Nix <[email protected]>
Reply-to: Peterborough LUG - No commercial posts
<[email protected]>
To: Peterborough LUG - No commercial posts
<[email protected]>
Subject: Re: [Peterboro] Sinking feeling with rsync
Date: Mon, 14 Dec 2009 23:19:48 +0000

A possible pitfall between copying betwixt systems using rsync can be
preserving ownership if the user or/and group does not exist on both
systems -key in this is also making sure the UID & GID values match
(different distros and rsync version/switch handling can impact this)


Martin

Sent from my iPhone

On 14 Dec 2009, at 22:53, Steve Tompkins-MacQueen <[email protected]>
wrote:



> Hi there.
> 
> 
> I have often found when trying to sync files with whatever pice of
> software I have had problems with permisions (can't read or write
> file) and also some file names giving errors many programs have not
> liked files with spaces and other punctionation. 
> 
> 
> Some things I would try:-
> 
> 
> First check the permisions of all the files in the directory with a
> command like
> 
> 
> chmod -r user:group *    Change as apropate
> 
> 
> Secound try finding and copying manualy files like the one
> (.nmw........)  in this e-mail before running rsync
> (Invalid argement 22) looks as if the file name is not compatabale
> with this program (I may be wrong)
> 
> 
> Have you tryed not using the --modify-window=1
> 
> 
> Dous this help?
> 
> 
> 
> 
> 
> On 10 Dec 2009, at 19:39, Martin Nix wrote:
> 
> > I don't have the rsync reference to hand but I always use the switch
> > option -avzpgt - this will only do changes and preserves permissions
> > and time stamps
> > 
> > 
> > Martin
> > 
> > 2009/12/10 Edward Kerr <[email protected]>
> >         I am having problems with using rsync to backup across my
> >         network.
> >         
> >         
> >         Set up is
> >         
> >         Ubuntu 9.10 - backing up to a Qnap NAS
> >         
> >         The relevant folder on the NAS is mounted by this command in
> >         the
> >         rc.local file
> >         
> >         mount -t cifs //192.168.0.9/edward /mnt/edward -o
> >         username=edward,password=xxxxxxx,uid=edward,gid=edward
> >         
> >         The rsync command is:  (runs as me)
> >         
> >         rsync -rvt --progress --delete
> >         --modify-window=1 /home/edward/Documents/ /mnt/edward/Documents/
> >         
> >         This runs completely (with some errors - below)  but does
> >         not sync.  It
> >         simply copies all the files each time, deleting as
> >         appropriate.
> >         
> >         So I do get a BU but whereas it might only take a few
> >         seconds if little
> >         has changed, it takes ages as it copies each and every file!
> >         
> >         One of the error messages I get is:
> >         
> >         rsync: failed to set times on
> >         
> > "/mnt/edward/Documents/webs/twointune/site/twointune.elementfx.com/logos/.nmw.gif.QyEqWI":
> >  Invalid argument (22)
> >         
> >         .nmw.gif.QyEqWI is a non existent file!
> >         
> >         Any ideas please?
> >         
> >         Thanks
> >         
> >         
> >         
> >         
> >         
> >         Ed
> >         
> >         
> >         
> >         _______________________________________________
> >         Peterboro mailing list
> >         [email protected]
> >         https://mailman.lug.org.uk/mailman/listinfo/peterboro
> > 
> > 
> > _______________________________________________
> > Peterboro mailing list
> > [email protected]
> > https://mailman.lug.org.uk/mailman/listinfo/peterboro
> 
> 
> _______________________________________________
> Peterboro mailing list
> [email protected]
> https://mailman.lug.org.uk/mailman/listinfo/peterboro
_______________________________________________
Peterboro mailing list
[email protected]
https://mailman.lug.org.uk/mailman/listinfo/peterboro


_______________________________________________
Peterboro mailing list
[email protected]
https://mailman.lug.org.uk/mailman/listinfo/peterboro

Reply via email to