Matthew Smith
2006-Aug-09 00:56 UTC
rsync in cygwin to my linux nslu2 has permissions problems
(I'm using an ssh connection since I plan to do this over the internet in the future) When I try to backup, most of the files are copied. Trouble is, some aren't since some directories are copied over and land on my linux box with permissions of 000. Because of that, rsync can't copy any other files into that dir and moves on. I'd really just like rsync to copy over files all at the same permission level (say 770) or something. Is that possible? -------------- next part -------------- HTML attachment scrubbed and removed
Matt McCutchen
2006-Aug-09 01:18 UTC
rsync in cygwin to my linux nslu2 has permissions problems
On 8/8/06, Matthew Smith <gizmosmith@gmail.com> wrote:> When I try to backup, most of the files are copied. Trouble is, some aren't > since some directories are copied over and land on my linux box with > permissions of 000. Because of that, rsync can't copy any other files into > that dir and moves on.Interesting. Currently rsync ensures that directories are user-writable while it is putting files in them; I guess rsync should ensure that they are user-readable and user-executable too.> I'd really just like rsync to copy over files all at the same permission > level (say 770) or something. Is that possible?The --chmod option added in rsync 2.6.7 will do that. Specify --chmod=ug=rwX,o= to give files 770 or 660 permissions as appropriate. Matt