User:BryanDavis/Toolforge

From Wikitech

Hacks for working on Toolforge.

Copy files from local to tool's $HOME as the tool user

Use rsync to send files from the local computer to Toolforge. On the Toolforge side we tell rsync to first become the target tool before starting the rsync service. This works using ssh as the transport layer and assumes that your local ssh config knows which remote user and ssh key to use when talking to Toolforge.

$ TOOL=bd808-test
$ rsync --rsync-path="/usr/bin/become $TOOL -- rsync" -rvz local/path/to/files login.toolforge.org:

See also