D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] RSync

 

Richard Brown wrote:
> I am hoping that somewhere on the list there might be an rsync guru
> willing to help or advise. I have two Linux NAS boxes and a Mac Pro. I
> am currently using a programme to sync from the first Linux box to the
> Mac and then the Mac to the second Linux box. The first sync takes
> place at 10, 11, 12, 1, 2, and 3 during the day and the second sync
> takes place at 4 at the end of the day. The second box is then removed
> from site.
> 
> The programme I am using encounters several problems. Firstly,
> permissions. The users are mainly windows users and when they create a
> new folder the permissions aren't set right. Overnight they are
> corrected but in the meantime the sync programme throws up errors and
> says it cannot sync that folder/file. Secondly mounting drives. On
> fairly regular occasions it won't mount drives or connect to the
> drive. If I do it manually no problems but if I run the programme and
> ask it to do it automatically it doesn't do it.
> 
> Is it possible to write and rsync script that will take care of the
> above incidents please?

This isn't really an rsync problem. Are you even using rsync? If you 
want to set rsync up, check out:
http://www.mikerubel.org/computers/rsync_snapshots/

Sounds like the permissions are a problem with your samba config. Check 
out the permissions stuff in the smb.conf man page. It's very good. 
Actually- what on earth? A sync program not being able to copy files due 
to permissions? That's not right. You need to run the sync program as 
root. Then everything gets preserved.

As for mounting... that sounds much like the problem I have. My USB 
drive regularly gives up half way through a transfer and has to be 
remounted and the transfer started again. This doesn't work so well in a 
cron job. It's very annoying.

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html