1
I have the following script that sends files from a local folder to a remote server:
rsync -Crav --exclude 'storage' --exclude 'error_log' --exclude 'database.php' --progress --partial --rsh='ssh -p1150' /home/user/Projects/project-local/* [email protected]:/home/user/www/project-remote
I wanted to know if there is a possibility to define which files and folders will get there with the owner and group of files 'user10' (example).
If yes, I also wanted to know how to say that the folder and files within 'vendor' will have another group and owner different from the others already defined.
Thanks in advance.