Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

Re: Slightly OT: rsync backup from mythbox -> desktop/FE

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


gull at gull

Nov 2, 2008, 5:07 PM

Post #1 of 3 (454 views)
Permalink
Re: Slightly OT: rsync backup from mythbox -> desktop/FE

Bobby Gill wrote:
> I got a bit confused there with your explanation of setting the
> option(s) to allow root from my server to write to my desktop (backup
> spot), could you clarify? (Sorry lol)

NFS by default does not allow the root user on the client to have root
permissions on the server. This is because there are lots of uses for
NFS where you may not fully trust the person who administers the client.
As a result, by default NFS maps the root user to the user "nobody".

You can turn this off by putting "no_root_squash" in the line in
/etc/exports that defines your NFS share. This will give root users on
the client actual root file permissions on the server. For example,
here's a line from /etc/exports on my MythTV box:

/var/video
192.168.10.0/24(rw,sync,no_root_squash,insecure,no_subtree_check)

(That should be all one line, but the email client wrapped it.)

> I'm very open to the idea of an rsync server, what would that consist
> of?

Start with 'man rsyncd.conf'; that should get you started. The details
of how to get rsync to launch in daemon mode automatically depend a bit
on your Linux distribution; if you mention which one you're using I may
already know how to do it, since I've set up a few.

_______________________________________________
mythtv-users mailing list
mythtv-users[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


bobbygill at rogers

Nov 2, 2008, 5:53 PM

Post #2 of 3 (429 views)
Permalink
Re: Slightly OT: rsync backup from mythbox -> desktop/FE [In reply to]

>
> NFS by default does not allow the root user on the client to have root
> permissions on the server. This is because there are lots of uses for
> NFS where you may not fully trust the person who administers the client.
> As a result, by default NFS maps the root user to the user "nobody".
>
> You can turn this off by putting "no_root_squash" in the line in
> /etc/exports that defines your NFS share. This will give root users on
> the client actual root file permissions on the server. For example,
> here's a line from /etc/exports on my MythTV box:
>
> /var/video
> 192.168.10.0/24(rw,sync,no_root_squash,insecure,no_subtree_check)<http://192.168.10.0/24%28rw,sync,no_root_squash,insecure,no_subtree_check%29>
>
> (That should be all one line, but the email client wrapped it.)
>
> > I'm very open to the idea of an rsync server, what would that consist
> > of?
>
> Start with 'man rsyncd.conf'; that should get you started. The details
> of how to get rsync to launch in daemon mode automatically depend a bit
> on your Linux distribution; if you mention which one you're using I may
> already know how to do it, since I've set up a few.
>

Thanks a bunch David, I changed my /etc/exports and now she's syncing fine
with sudo.

I am using Arch linux. I have various rsync commands in my crontab, .bashrc,
etc. set to run daily and they go just fine-- is that what we're talking
about? I think by "rsync server" I am taking it to mean another location to
rsync to.


Thanks very much
Bob


gull at gull

Nov 4, 2008, 2:29 PM

Post #3 of 3 (400 views)
Permalink
Re: Slightly OT: rsync backup from mythbox -> desktop/FE [In reply to]

Bobby Gill wrote:
> I am using Arch linux. I have various rsync commands in my crontab,
> .bashrc, etc. set to run daily and they go just fine-- is that what
> we're talking about? I think by "rsync server" I am taking it to mean
> another location to rsync to.

It's an alternate way to use rsync. Rsync on one machine acts like a
server, running on its own network port, and the rsync client connects
to it. It's useful for situations where you don't have a network
filesystem between the two machines.

If what you have is working for you, there's probably no reason to set
up a server.

_______________________________________________
mythtv-users mailing list
mythtv-users[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.