NYCPHP Meetup

NYPHP.org

[nycphp-talk] TAR and permissions

Carlos A Hoyos cahoyos at us.ibm.com
Sun Oct 26 18:20:44 EST 2003






I replicate from stage to live with a a script that uses rsync to move the
files.
With rsync you will be able to replicate only the files that have changed,
and also preserve ownership. It's also faster and can securely copy between
servers.

Carlos



                                                                                                                                       
                      Marc Antony Vose                                                                                                 
                      <suzerain at suzerai        To:       NYPHP Talk <talk at lists.nyphp.org>                                             
                      n.com>                   cc:                                                                                     
                      Sent by:                 Subject:  [nycphp-talk] TAR and permissions                                              
                      talk-bounces at list                                                                                                
                      s.nyphp.org                                                                                                      
                                                                                                                                       
                                                                                                                                       
                      10/26/2003 09:55                                                                                                 
                      PM                                                                                                               
                      Please respond to                                                                                                
                      NYPHP Talk                                                                                                       
                                                                                                                                       



Hi there:

I've written a simple script that's moving files from a staging
server location to the live server area (virtual servers on the same
Linux box).

I'm doing it by creating a TAR file from specified files in the
staging area, copying the TAR file over to the live area, and
extracting it.

My problem is that all files coming out of the archive are having the
user and group 'apache' assigned to them.  Is it possible to
accomplish this without altering the user/group information?

(The script is being run from a Web interface...PHP scripts are being
parsed by the PHP Apache module, not the CGI version.)

Cheers,

--
Marc Antony Vose
http://www.suzerain.com/

When a man is generally detested,
or when he is generally beloved,
closer examination is necessary.
-- K'ung-Tzu
_______________________________________________
talk mailing list
talk at lists.nyphp.org
http://lists.nyphp.org/mailman/listinfo/talk





More information about the talk mailing list