« Commandes BASH » : différence entre les versions

Ligne 12 : Ligne 12 :
== Example RSYNC aller et retour avec chown et chmod ==
== Example RSYNC aller et retour avec chown et chmod ==


<pre>
<syntaxhighlight lang="bash" line copy>
rsync local -> serveur rsync -avz --delete --chown="user:group" --chmod="D2755,F644" --rsync-path="sudo rsync" -e "ssh -p654" /users/toto/ user@1.2.3.4:/home/toto/
rsync local -> serveur rsync -avz --delete --chown="user:group" --chmod="D2755,F644" --rsync-path="sudo rsync" -e "ssh -p654" /users/toto/ user@1.2.3.4:/home/toto/


rsync serveur -> local rsync -avz --delete --no-owner --no-group --no-perms --rsync-path="sudo rsync" -e "ssh -p654" user@1.2.3.4:/home/toto/ /users/toto/
rsync serveur -> local rsync -avz --delete --no-owner --no-group --no-perms --rsync-path="sudo rsync" -e "ssh -p654" user@1.2.3.4:/home/toto/ /users/toto/
</pre>
</syntaxhighlight>


== Linux version noyau ==
== Linux version noyau ==