[SOLVED] rsync updates permissions when they haven't changed
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
rsync updates permissions when they haven't changed
Hi,
Quick question regarding rsync behaviour. I run a daily rsync command to backup a bunch of my files to an external drive. When I run the command rysnc will update a bunch of files that have not changed. The "--itemize-changes" option indicates that rsync is only updating the permissions of these files yet they have not changed.
For example the output:
".f...p..... bin/mlbhls/mlb.c"
Is this behaviour normal?
Thanks.
Last edited by edsmith123; 01-19-2015 at 01:17 PM.
Sorry about that. I am using the -a options which would also preserve permissions.
I want them to be preserved but I don't understand why rsync 'updates' them on these files every time I run the command when the permissions of the source files have not changed.
What filesystem is your external drive? If it's the typical NTFS that comes from the manufacturer, that does not have the same permission structure as a native Linux filesystem. So you may be running into that mismatch as the trigger for the unexpected "updating permissions" messages from rsync. I don't really know ... I'm just guessing.
Yeah, it's NTFS. I guess I could format the drive to Linux file system but I would prefer to leave it as NTFS because I sometime plug it into a windows machine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.