Hide password
So my setup is that i have backup script that i run through winscp like this
option exclude "*.mp3; *.mp4; *.lnk; *.exe; *.msi; My Pictures; My Music; My Videos; @college; .metadata;"
# Comment out the next two lines to test
option batch on
option confirm off
# Connect - format: user:password@host
open chris:testpassword@backupserver.org
# Force binary mode transfer
option transfer binary
# Download backup file to remote directory
synchronize remote F:\ /home/chris/recent
# Disconnect
close
# Exit WinSCP
exit
But i do not like to have password in the clear in the text file, is their any nicer way of doing this?
Thanks
option exclude "*.mp3; *.mp4; *.lnk; *.exe; *.msi; My Pictures; My Music; My Videos; @college; .metadata;"
# Comment out the next two lines to test
option batch on
option confirm off
# Connect - format: user:password@host
open chris:testpassword@backupserver.org
# Force binary mode transfer
option transfer binary
# Download backup file to remote directory
synchronize remote F:\ /home/chris/recent
# Disconnect
close
# Exit WinSCP
exit
But i do not like to have password in the clear in the text file, is their any nicer way of doing this?
Thanks