[K12OSN] Simple RSYNC question
Rob Owens
hick518 at yahoo.com
Thu Oct 6 16:53:14 UTC 2005
Are you using the -a option? That is supposed to
preserve permissions, among other things. If you
don't want to use -a for some reason, you can specify
-p to preserve permissions. But generally I think -a
is used because it preserves time stamps, group,
owner, permissions, links, etc., as well as recursing
down into the directory structure.
-Rob
--- Rich McCue <rmccue at law.uvic.ca> wrote:
> I'm sure I'm just missing a setting or something,
> but when I rsync data from one server to another all
> the files on the destination server are owned by the
> user that ran rsync.
>
> For example I have a server with a backup tape
> attached to it, and I run rsync from that machine to
> two other servers to get their data to the backup
> server. This works great, except for the file
> ownership thing... everything is owned by root after
> it gets to the backup server.
>
> Any help with this would be greatly appreciated.
>
> Rich
>
> -----Original Message-----
> From: k12osn-bounces at redhat.com
> [mailto:k12osn-bounces at redhat.com] On Behalf Of Jim
> Kronebusch
> Sent: Thursday, October 06, 2005 6:29 AM
> To: Support list for opensource software in schools.
> Subject: RE: [K12OSN] Simple RSYNC question
>
> > One trick is to add -n to the options which will
> make rsync
> > not really do anything, but if you are also using
> -v it will show
> > you what would happen in a real run. If
> everything looks
> > reasonable, then run it again without the -n to
> really do it.
> > When I build new servers I usually set the new one
> up with a
> > different name/ip address and rsync most stuff
> over ahead of
> > the switch and check that things generally work.
> Then at the
> > last minute I shut down services on the old
> server, do a
> > final rsync of user data like /home and
> /var/spool/mail with
> > the --delete option on. This goes quickly unless
> there are a
> > lot of changes. Then I change the names and IP
> numbers on
> > both servers and reboot so in a few minutes more
> than a
> > reboot, the new box takes over.
>
> Thanks for the extra tips Les. I might give it a go
> close of business
> today. Keeping my fingers crossed :-)
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.11.10/120 -
> Release Date:
> 10/5/2005
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content by the Cotter Technology
> Department, and is believed to be clean.
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
>
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
>
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
More information about the K12OSN
mailing list