Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I need to transfer a huge amount of data between 2 sites.
Both side of the transfert run Linux systems.
Data must be protected in confidentiality.
However, the upload capability is quite low on each sites (connected through ADSL).
At the moment, i use SFTP to transfert data between each sites.
However, i wondered if having a VPN between the two sites, and performing a classic FTP transfert would be better on a performance point of view.
@PlatinumX: as you know, both ssh and vpn get you encryption on the wire. As for which will be quicker given your circumstances, I have no idea. You could do some performance testing with a small amount of sample data.
rsync is a good idea if you're going to be doing a one-time large data transfer and then keeping it in sync afterwards.
Just to clarify, you 'could' use rsync, because although rsync only txfrs 'differences', the diff between the whole file at src and nothing at target, is indeed the whole file
However, scp would be simpler & quicker (and yes, gzip it first, looking at the compression options - level 9 is highest compression, but slowest to do iirc)
A nice advantage of VPN is that you can do it in hardware. So, you can set up a router on each end (or use the VPN capabilities that might well be already available on what's already there), and arrange for both of them to exchange everything that must pass between them securely.
As long as you know that this is working correctly, and that nothing will ever be passed "in the clear," then you now have a secure channel that you can "just forget about." The encryption takes place but it is entirely transparent to you.
It is critically important that you use digital certificates (self-generated is fine...) to secure the link: don't rely upon "shared secrets" (passwords). This will allow the two routers not only to provide truly-secure communication with each other, but to identify each other.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.