Re: Rsync



Jos Chrispijn wrote:
Matthew Seaman wrote:
Use anonymous rsync? There's a section on rsyncd in the rsync(1)
man page, but most of the meat is in the rsyncd.conf(5) man page.
The downside is you'll lose information about user and group ownership
of files. Oh, and obviously be careful about limiting where people
can access the rsyncd server from, or your precious data may go on
an unplanned walkies...

I don't want to loose any user and group ownership of files. Would there be another solution without rsync then or does the 'forbidden root login' affect all backup solutions here?

If you're going to expand the backup sets on the mirror box back into
a second copy of the filesystem, then you definitely need root access
on the client (to read any file irrespective of permissions) and on the server (in order to set the ownership and permissions on the files).

You can NFS mount the filesystem onto the second server and copy the
files locally that way -- but watch out for the way root-owned files are
changed to nobody:nobody ownership by default.

You can use ggated(8) and ggatec(8) to share the filesystem at low-level
between the two machines. It's even possible to combine that with a local filesystem using gmirror(8) to have instantaneous synchronisation of both copies of the data on the two machines, although I wouldn't trust that for anything your livelihood depends on.

You can do a similar trick using iSCSI -- you'll need the net/iscsi-target
port installed on the server machine and to use the iscsi_initiator(4)
driver on the client machines. See also iscontrol(8)

However, if you're willing to store a tarball or other archive format
as your backup, then you don't need root access on the backup server, although you will still need it on the client.

In this case, you can use just about anything: dump(8), tar(1), cpio(1)
-- these all give you the option of 'writing to a remote device' which can
just be a regular file on your second machine. Usually network writes are
over ssh(1), although you will possibly be required to set some variables in the environment to force that to be the case. So all you need is a non-root account on the server that lets root on the clients log into it. That can be arranged using key-based auth quite nicely.

Depending on how much stuff you have, and the likelyhood that you'll
need to restore it, you could use a full-blown backup system like
bacula. It's pretty easy to get bacula to write backup sets to disk,
and you get a not bad at all command interface via bconsole to manipulate
all that from either the backup client or the backup server host.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW

Attachment: signature.asc
Description: OpenPGP digital signature



Relevant Pages

  • Re: Looking for advice on rsync
    ... > etc.) you can have inconsistent versions on the backup media. ... Rsync can't do any better than a backup for that. ... client backups with rsync and FreeBSD". ... copy onf a FreeBSD server. ...
    (comp.os.linux.misc)
  • Re: LAN Performance Not Up to Expectations
    ... And I still specifically feel like you aren't taking into account that the HD on your backup machine is still a workstation class HD. ... Even high-end server-class hard drives won't get to 100MB/s, no less 3GB. ... Server has two NICs. ... One domain client and three peer clients (who merely use the routing ...
    (microsoft.public.windows.server.sbs)
  • Re: LAN Performance Not Up to Expectations
    ... 108GB backup is definitely an extended write. ... high-end server-class hard drives won't get ... Server has two NICs. ... One domain client and three peer clients (who merely use the routing ...
    (microsoft.public.windows.server.sbs)
  • Re: allow user to run application on server 2003
    ... The client piece works fine, but they wrote it so application ... backup needs to happen locally. ... but did allow remote desktop to the server. ... database and app on the server and the app on the client. ...
    (microsoft.public.windows.server.general)
  • RE: SBS Back up Failure
    ... attached the log and report from yesterday's backup also. ... One or more components of Small Business Server Backup failed. ... recommended that you review errors in the Event log related to the service. ... Notifications task in the Server Management Monitoring and Reporting taskpad. ...
    (microsoft.public.windows.server.sbs)

Loading