Собственна ман что-то сложно дается
Нужно выполнить rsync over ssh, но при этом сменить владельца и установить права, на файлы 664, на папки 775, как?)
Cейчас делаю так на src
rsync -avz /var/www/sm.web.local/httpdocs/js/ [email protected]:~root/
А после на dst
/usr/bin/find . -type d | while read FILE; do chmod 775 "$FILE"; done
/usr/bin/find . -type f | while read FILE; do chmod 664 "$FILE"; done
chown -R timestream:timestream *
Нужно выполнить rsync over ssh, но при этом сменить владельца и установить права, на файлы 664, на папки 775, как?)
Cейчас делаю так на src
rsync -avz /var/www/sm.web.local/httpdocs/js/ [email protected]:~root/
А после на dst
/usr/bin/find . -type d | while read FILE; do chmod 775 "$FILE"; done
/usr/bin/find . -type f | while read FILE; do chmod 664 "$FILE"; done
chown -R timestream:timestream *