Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RSYNC_PASSWORD
- Setting RSYNC_PASSWORD to the required password allows you to
- run authenticated rsync connections to an rsync daemon without
- user intervention. Note that this does not supply a password to
- a shell transport such as ssh.
- USER or LOGNAME
- The USER or LOGNAME environment variables are used to determine
- the default username sent to an rsync daemon. If neither is
- set, the username defaults to 'nobody'
- #!/bin/bash
- USER=name
- RSYNC_PASSWORD=pass
- DEST="myhost::mymodule"
- /usr/bin/rsync -rltvvv . $DEST
- /usr/bin/rsync -rltvvv . myuser@myhost::mymodule
- opening tcp connection to myhost port 873
- opening connection using --server -vvvltr . mymodule
- @ERROR: auth failed on module mymodule
- rsync error: error starting client-server protocol (code 5) at main.c(1383) [sender=2.6.9]
- _exit_cleanup(code=5, file=main.c, line=1383): about to call exit(5)
- rsync -rltvvv --password-file=/root/secret . user@host::dest
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement