How to prevent unison syncronize file when file process uploading
Posted
by
user134600
on Server Fault
See other posts from Server Fault
or by user134600
Published on 2012-09-04T09:06:43Z
Indexed on
2012/09/04
9:39 UTC
Read the original article
Hit count: 327
I use CentOS 5.8 Final.
My situation is I running unison with cron where script below :
*/1 * * * * /usr/bin/unison >/dev/null 2>&1
and default profile like below :
root = /var/www root = ssh://web02.example.com//var/www auto=true batch=true confirmbigdel=true fastcheck=true group=true owner=true prefer=newer silent=true times=true
So in every minutes will syncronized www folder . My problem are :
- I upload file with size bigger than 10 MB to www from client with user1 permission where www folder is user1 owner. file in processing uploading then unison running in that minute and suddenly file upload owner changed to root:root
- When I editing file in www folder then I save when unison running, file owner changed to root:root where should be user1:user1
Is there anyone know about this problem?
© Server Fault or respective owner