RSYNC : permission denied

I'm using rsync to sync 2 usb devices with data from several computers.
The process stops with failed message : permission denied.

It's one file... for the moment. I deleted the file manually on the start device but when using Rsync it keeps messaging permission denied on that file. But the file isn't there any more. (strange)

How can I do the sync and give a report of the files with permission denied.
But don't stop with syncing the rest.
Or how can I skip that file?
Or how can I delete that file out of the index?

What is the best work around or solution for this?
Many thanks!!

Different workstations from 10.3.9 to latest// G5 server - OS 10.3.9, Mac OS X (10.5.6)

Posted on May 19, 2009 1:38 AM

Reply
5 replies

May 20, 2009 2:01 AM in response to red_menace

Hello Red_Menace,

Thanks for the advice.

It's true Rsync continues but I would like to know how I can fix it so I don't get any messages any more.

Can you give me an example of a log??
Maybe you already have some scripts or parts for that?

I just use "rsync -avz ..."

From usb to usb device.

Do you know why I still get the message - because I deleted the file on the start volume. That's something I would like to fix or know how it works.

When I know Rsync better I will sync a lot more. Still learning and testing.

Many thanks in advance...

May 20, 2009 7:24 AM in response to Colin @ mac.com

I have a script with some different options, but you can use something like:

<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px; height: 340px;
color: #000000;
background-color: #FFEE80;
overflow: auto;"
title="this text can be pasted into the Script Editor">
property DryRun : false -- set to true for testing
property LogFile : true -- set to true to write to a log file

set SourceFolder to (choose folder with prompt "Select a source folder:")
-- set SourceFolder to text 1 thru -2 of (SourceFolder as text) -- copy folder by name
set Source to quoted form of POSIX path of SourceFolder -- format for the shell script
set DestinationFolder to (choose folder with prompt "Select a destination folder:")
set Destination to quoted form of POSIX path of DestinationFolder -- format for the shell script

set Command to "/usr/bin/rsync --archive --compress --human-readable --stats --verbose --verbose " -- extra verbosity
if DryRun then
set Command to Command & "--dry-run " -- fake it
end if
if LogFile then
get (POSIX path of ((path to home folder) as text) & "Library/Logs/AS_rsync.log")
set Command to Command & "--log-file=" & (quoted form of the result) & space
end if

try -- output any additional info
do shell script Command & Source & space & Destination
set TheResult to paragraphs of the result
if LogFile then
set SummaryText to "rsync successful (see log):"
else
set SummaryText to "rsync successful:"
end if
on error errmess
set TheResult to paragraphs of errmess
set SummaryText to "rsync had errors:"
end try
choose from list TheResult with prompt SummaryText with empty selection allowed
</pre>

Check the logs and any errors for clues. For that missing file, you might try using a --delete-before option

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

RSYNC : permission denied

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.