[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-developers] CMU and Tar to transfer sites from one Raq3 to another



a common issue with the CMU as it runs as admin all the file ownerships are
admin:siteX

So its not a problem with HTML pages as these normally have rw-rw-r so
groups siteadmin AND admin can read&write to them.

The problem is with cgi scripts, data files etc.

The easiest fix is to do a two step transfer

First backup the servers /home/sites/ folder with Rsync (rsync.samba.org)
This mirrors the server AND maintains correct permission/ownerships :)

Then use the CMU to import the username/passwords/aliases/sites information,
all still owned by admin :(

Next mirror your backup server onto the new RaQ and set the rysnc config to
overright the www.* folders in the /home/sites/ folder.

That'll work - sorry I've been basic on the "how to" if you/anyone needs to
know in-depth I'll happy dig out my command line instructions.





-----Original Message-----
From: cobalt-developers-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-developers-admin@xxxxxxxxxxxxxxx]On Behalf Of Tian
Sent: 29 June 2001 16:48
To: cobalt-developers@xxxxxxxxxxxxxxx
Subject: [cobalt-developers] CMU and Tar to transfer sites from one Raq3
to another


I have noticed that the Raq 3 CMU (RaQ3-all-CMU Release 1.1-22)
does not seem to preserve file owners when you transfer sites from
one Raq 3 to another. For example, if you have FrontPage enabled
for a site, when you restore the web page files, all of the files will
have the owner "nobody" regardless of what the owner was of the
files on the machine that you backed up from.

I am trying to use tar to back up the files for each site and then
restore the files onto the new Raq 3. When I restore the files on
to the new Raq 3, I have noticed that the group for each file is
changed from a site number (ex. site23) to just a number (ex.
144). If I use chgrp to change the file/directory owners to the
correct group (based on what the new site number is), will
there be any problems?

Also, I am using the following tar options to backup/restore
the files (I'm not a Unix expert.. yet):
backup: tar cvfW [tar file] [directory to back up]
restore: tar xvf [tar file] [location to restore to]
Will these options back up and restore all of the required file
information (owner, permissions, etc.) for everything to work
correctly?

Tian.

_______________________________________________
cobalt-developers mailing list
cobalt-developers@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-developers