Rsync error: failed to set times

From Nitix Knowledgebase

Jump to: navigation, search


 

Problem

Why am I getting the following error while using rsync on my server?

DIRECTORY/PATH/
rsync: failed to set times on "/DIRECTORY/PATH" (in USER): Operation not permitted (1)
 

Cause

This error occurs because the rsync version in Nitix cannot preserve modified times for directories.

 

Solution

To stop this error from occurring, use the following command (instead of the regular -zavP):

rsync -zavPO

The O option tells rsync to omit directories when preserving times.

Similar Articles

Retrieved from "http://kb.nitix.com/4071"
Account Info
Was this article helpful?
How can we improve
this article?
Have more detailed feedback?
Email: