Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Oct 2003 08:58:02 -0500
From:      Redmond Militante <r-militante@northwestern.edu>
To:        freebsd-questions@freebsd.org
Subject:   rsync/mirroring permissions problem
Message-ID:  <20031006135802.GA868@darkpossum>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
hi all

i'm trying to do a 'push' rsync operation to mirror the contents of my websites root directory on one machine over to a remote machine.  rsync is installed on both machines.  the command i'm using to rsync is

rsync -e ssh -avz --exclude "/phpSysInfo" --exclude "/webalizer" --exclude "/phpMyAdmin" --delete --stats /usr/local/www/data-dist/ remote.machine.com=:/usr/local/www/data-dist/ 

this works, for the most part. the majority of files on the remote directory are sync'ed correctly after the operation.  the problem is - this websites root directory is owned by one user - webuser, who is a member of group - webuser.  various subdirectories inside of the websites root folder are owned by other users, who are also members of the 'webuser' group.  the files/folders in the websites root direcotry are chmod'ed 775.

this causes problems with the rsync operation, as i'm rsync'ing as webuser:webuser.  i get errors during the rsync process such as

failed to set permissions on studentwork/winter03old/war/images : Operation not permitted

again, the majority of files sync correctly.  but can anyone recommend a good way around this?  i'm not able at this point to limit the websites root directory to only one user account...

thanks
redmond

-- 
FreeBSD 5.1-RELEASE-p10 FreeBSD 5.1-RELEASE-p10 #0: Fri Oct 3 21:30:51 CDT 2003
 8:30AM  up 22:46, 1 user, load averages: 1.69, 1.61, 1.47
 
Ever notice that even the busiest people are never too busy to tell you
just how busy they are.
 

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE/gXTq7g+NJl/fSB0RAv26AJ9II5EJyoMgIflxXMdlvDIGUvlFtgCgnb9w
DOrSI8UtSMMfODo94QRLIOM=
=6iQT
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031006135802.GA868>