If using UNIX you can use scp. Basically scp securely copies a file via the ssh protocol.
scp root@server1:/my.path/to/dumpfile.db root@destinationserver:/my.path/to/dumpfile.db
call scp as a system call. You will need to have an authentiction key setup which allows server1 to connect to destinationserver without providing a password. This is very easy to do with openssh, or any other ssh daemon out there.