Mailinglist Archive: opensuse (3513 mails)

< Previous Next >
Re: [opensuse] rsync ?

----- Original Message ----- From: "Erik Jakobsen" <eja@xxxxxxxxxxx>
To: <opensuse@xxxxxxxxxxxx>
Sent: Wednesday, January 07, 2009 11:18 AM
Subject: [opensuse] rsync ?


Hi.

openSUSE 11.1 and KDE4.1.3

I have a server, that can made backup with rsync to for instance my 11.1
computer.
There is a name called "module", that I don't really understand. It
shall be written
on the server before the backup.

"NAS and a linux rsync server". The module name means the task/mission
name you setup in the linux rsync server."

Is what I see. And this is what I don't really understand.
What to do ?


Think of a module like a samba/windows share or nfs export.
You define some real path on the server machine, and give it any sort of name you want, and the client can access that share by that name, and they have access to only that directory and any under it.

So: on the server (lets call it "tank"), assume you want to allow clients to access a directory /path/to/backups/boxa

on tank:
In /etc/rsyncd.conf you define a module (a share, or export) which is for backups of a client box named boxa.
---snip---

[boxa]
path = /path/to/backups/boxa
auth users = usera

---snip---

Above, I have said that only user "usera" may access the "boxa" module.
If using native rsync (not ssh or rsh), rsync users have nothing to do with system users on either server or client.
They are defined solely within /etc/rsyncd.secrets on the server.
So, also on tank:
in /etc/rsyncd.secrets

---snip---
usera:passa
---snip---


Now, from boxa (the client)
you can use an rsync command like this, say to backup the /u drive to the boxa dir on tank

on boxa:
rsync -avz --del /u usera@tank::boxa

Assuming several other config elements and permissions and firewall details have also been tended to,
and assuming you entered "passa" when asked,
this will copy /u from boxa, to create, then subsequently update, /path/to/backups/boxa/u on tank.

--
Brian K. White brian@xxxxxxxxx http://www.myspace.com/KEYofR
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx Linux SCO FreeBSD #callahans Satriani Filk!


--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
References