I have an rsync setup that transfers files from my local development machine to my production web server. On the production server, the storage
directory needs to be 775.
When the rsync completes, it gets changed to 755
rsync
I have an rsync setup that transfers files from my local development machine to my production web server. On the production server, the storage
directory needs to be 775.
When the rsync completes, it gets changed to 755
Best Answer
From
man rsync
:Assuming that you want to preserve all metadata and not just permissions, you probably want to use
-a
with-HAX
, which implies-p
.