Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm looking for a simple backup solution. My hoster has provided some backup space on remote server over scp/sftp. They have supplied me a username and a password. The option of auth with a RSA/DSA key is not avaliable.

Ideally, I'd like to have a simple script that would:

tar | gzip | gpg | scp -uuser -ppassword my.backup.server

However I can't find an scp client that would accept username and password on command line and stuff to transfer on standart input.

share|improve this question
2  
Honestly, I'd ask them for the ability to use (and require) key-based authentication. More secure for you, and therefore more secure for them. If they can't/won't do it, there's other, better hosting providers out there. –  mattdm Dec 15 '10 at 15:50
add comment

1 Answer

If you're on windows, then WinSCP can be scripted. If you're on Linux (or Windows, too) you can find or install Expect, which can script anything interactive.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.