From the looks of it, that's more to do with getting target upload path correct in your bzr upload - should you not be doing "bzr upload sftp://castor/path/to/target/" ? Also, if you don't want reboot_calcul.bash to be uploaded, then add it to the ignore file .bzrignore using "bzr ignore"
Additionally, you seem to have ssh access to the remote system, unless bzr is not installed on that system you are probably better off using "bzr send" to send a patch file to the remote system. Have a look at https://bugs.launchpad.net/bzr/+bug/221021 for a method of sending a patch file to a remote server.
@roumanu
From the looks of it, that's more to do with getting target upload path correct in your bzr upload - should you not be doing "bzr upload sftp:// castor/ path/to/ target/" ? Also, if you don't want reboot_calcul.bash to be uploaded, then add it to the ignore file .bzrignore using "bzr ignore"
Additionally, you seem to have ssh access to the remote system, unless bzr is not installed on that system you are probably better off using "bzr send" to send a patch file to the remote system. Have a look at https:/ /bugs.launchpad .net/bzr/ +bug/221021 for a method of sending a patch file to a remote server.