Currently I use a script to put an image on the target server:
dd if=100mb.bin | ssh backup-server "dd of=/home/backupvps/blaa/100mb.bin"
However, how can I retrieve this very same file? I'd rather not use any FTP or Web server, but native commands.
As Max Alginin says,
scp
should work fine:scp user@backup-server:/home/backupvps/blaa/100mb.bin /some/location/here/
I'd look into
rsync
though; uses a delta transfer algorithm, more efficient.If for some reason scp doesn't work for this purpose, you can simply:
A lightweight option is to use netcat. ( Illustration )