Weird behavior with rsync and permission creep

Bryan O'Neal BONeal at cornerstonehome.com
Thu Nov 1 17:00:53 MST 2007


BTW you were correct it was altering the parent folders permissions to
match.  It did not used to but hey, I am sure I changes something along
the way ;)

I just dumped the backups into a sub directory on the backup[ server and
life was good.  Thanks for pointing this out :)

-----Original Message-----
From: plug-discuss-bounces at lists.plug.phoenix.az.us
[mailto:plug-discuss-bounces at lists.plug.phoenix.az.us] On Behalf Of
Bryan O'Neal
Sent: Tuesday, October 30, 2007 4:59 PM
To: Main PLUG discussion list
Subject: RE: Weird behavior with rsync and permission creep

It shouldn't be since the directories have different groups and
different permissions.  Truth is I don't pay much attention to it since
I do ACL on everything.  I have changed the permissions on both
directories to match but I need them to be rwxrwx--- or else I have
problems with my windows users writing to the samba shares.  I will run
the experiment and see what happens.

Thanks for the suggestion :)

-----Original Message-----
From: plug-discuss-bounces at lists.plug.phoenix.az.us
[mailto:plug-discuss-bounces at lists.plug.phoenix.az.us] On Behalf Of
Austin Godber
Sent: Tuesday, October 30, 2007 4:25 PM
To: Main PLUG discussion list
Subject: Re: Weird behavior with rsync and permission creep

Is it setting the permissions on the target to match the permissions on 
the source dir?

Austin

Bryan O'Neal wrote:
> When ever I run my rsync script (see bellow) it changes the
permissions
> on the destination users home directory.  What is going on?
> 
> I have three machines I backup to a box offsite.  Each box has an
> account on the remote box and is using standard key authentication via
> ssh.  Once of my boxes has this peculiar problem in that when it
> finishes backing up the permissions on the destination home directory
> are not the same as when it started.
> The script in question is running from an old Cent OS 4 box to an old
> REL 4 box.  I have no issue with my windows boxes backing up to the
same
> REL4 box, but the Cent OS box keeps resetting its REL4 users home
> directory from rwx------ to rwxrwxr-x which, amongst other things,
stops
> me from being able to run the script.  The issue started several
months
> ago and I can not find any cause.
> 
> 
> 
> #!/bin/bash
> service sendmail start
> date |cat >> /user/Desktop/Dailyrsync.log
> rsync -a -r -v -t -z --stats --progress -e ssh /home/
> centos at 192.168.27.15:/home/centos |cat >> /user/Desktop/Dailyrsync.log
> rsync -a -r -v -t -z --stats --progress -e ssh /homextra/shares/
> centos at 192.168.27.15:/home/centos |cat >> /user/Desktop/Dailyrsync.log
> cat /user/Desktop/Dailyrsync.log >> /root/Desktop/rsync.log
> 
> mailx -s "Redcent Backup Log" Bryan.Oneal at cornerstonehome.com <
> /root/Desktop/Dailyrsync.log
> sleep 1m
> rm /user/Desktop/Dailyrsync.log
> 
> 
> service sendmail stop
> 
> 
> Bryan O'Neal
> Cornerstone Homes & Development, Inc.
> 4220 E. McDowell Rd Ste. #108
> Mesa, AZ 85215
> (480) 505-1900 
> http://www.cornerstonehome.com 
> 
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss



More information about the PLUG-discuss mailing list