username and password for rsync in script
Solution 1:
Have you tried something like:
rsync -rltvvv --password-file=/root/secret . user@host::dest
Solution 2:
Use export RSYNC_PASSWORD=pass
instead of RSYNC_PASSWORD=pass
.
Have you tried something like:
rsync -rltvvv --password-file=/root/secret . user@host::dest
Use export RSYNC_PASSWORD=pass
instead of RSYNC_PASSWORD=pass
.