Re: Can't get rsync preserving ownership but rdist6 does?

From: Rasmus Brogger (Rasmus.Brogger_at_uni-c.dk)
Date: 08/25/04

  • Next message: JJB: "RE: Where i can check a log about the last reboot time of my freebsd box"
    Date: Wed, 25 Aug 2004 14:07:35 +0200
    To: Andrew Nelson <andrew__nelson@hotmail.com>
    
    

    Andrew Nelson wrote:
    > Hi,
    >
    > I have a central backup machine with a rsync daemon running with under
    > the user/group of root/wheel. I then have a number of other FreeBSD
    > machines pushing files to it for backup which is working
    >
    > On the client machines, I use:
    > rsync -CavzHpog /etc/namedb/ backup@backups.domainname.com:/archive/namedb
    >
    > All the files on the remote machine have the correct permissions but
    > are all owned by the 'backup' user. I used to use rdist6 which would
    > turn the
    > UID and GID into numbers where the users didn't exist on the local
    > machine and it
    > would all preserce nicely.
    >
    > My /usr/local/etc/rsyncd.conf is below and rsync is started by root
    > with "/usr/local/bin/rsync --daemon"
    >
    >
    > I'd appreciate any help!
    > Thanks,
    > Andrew.
    >
    >
    > --------------
    > # rsyncd conf
    >
    > # User & Group for rsync to run as
    > uid = root
    > gid = wheel
    >
    > # Use chroot with rsync
    > use chroot = yes
    > max connections = 20
    >
    > auth users = backup
    > secrets file = /usr/local/etc/rsyncd.secrets
    >
    >
    > # log and pid file options
    > pid file = /var/run/rsyncd.pid
    > log file = /var/log/rsync.log
    > syslog facility = local5
    >
    > hosts allow = <my hostnames>
    > hosts deny = *
    >
    > [dns]
    > path = /archive/namedb/
    > comment = Primary Name Server Backup
    > secrets file = /usr/local/etc/rsyncd.secrets
    > strict modes = true
    > read only = false
    >
    > _________________________________________________________________
    > Protect your inbox from harmful viruses with new ninemsn Premium. Go
    > to
    > http://ninemsn.com.au/premium/landing.asp?banner=emailtag&referrer=hotmail
    >
    > _______________________________________________
    > freebsd-isp@freebsd.org mailing list
    > http://lists.freebsd.org/mailman/listinfo/freebsd-isp
    > To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"

    rsync has a --numeric-id switch.

    I think this is what you're looking for.

    /rhb
    _______________________________________________
    freebsd-isp@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-isp
    To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"


  • Next message: JJB: "RE: Where i can check a log about the last reboot time of my freebsd box"

    Relevant Pages

    • Re: [opensuse] Suggestions for backup software?
      ... be something capable of bridging DVDs for a total backup, and probably CDs for incremental backup. ... At home I have an old file server running 10.0 and all you need is rsync that is already installed on your system. ... The way I set up rsync is to set up a primary script that calls rsync which then reads a second file to get a list of directories to back up. ...
      (SuSE)
    • Re: Sorta OT - Backup solutions Mac to FreeBSD
      ... I am backing up 5 servers on one centralized machines using "rsnapshot" It is doing a perfect job, ... As It uses a symlink strategy, It does not use very much space on the backup device. ... and remote machines over ssh. ... If you are syncing OSX 10.4 use the Apple provided rsync and not any other. ...
      (freebsd-questions)
    • Re: Looking for advice on rsync
      ... >etc.) you can have inconsistent versions on the backup media. ... Somebody told them that rsync could prevent ... >you run, but that's application level, and this app has no such ... If they use snapshots, that period can be ...
      (comp.os.linux.misc)
    • Re: printer problems
      ... >> The Laserjet seems to be connected and communicating with the Fedora ... > How about just using rsync for backup? ... >> How about just using rsync for backup? ... > comment = Rsync Backup Server ...
      (Fedora)
    • Rsync fails on local transfers
      ... I've got a script I wrote up which backs up my computer using rsync. ... Attached is the backup script I use (the configuration file it loads in ... # 3) Create a FS snapshot using LVM ... cleanup; continue;} ...
      (Fedora)