Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I don't know much about the specifics of rsync, SSH, stunnel, etc, but I'm looking for a way to make rsync backups, but the transfer of data over the network must be encrypted (the credentials, and the data itself). It looks like I have 2 options (do I have more?):

  1. rsyncd + stunnel: Run an rsync daemon on the remote machine, and set up stunnel to encrypt the communication between them (where stunnel is necessary because rsyncd by itself has no encryption)
  2. rsync over SSH: Just use the regular rsync command and set SSH as the remote shell, to encrypt communcation.

What are the pros and cons of each of these approaches from the perspectives of security, speed, efficiency, ease of administration, etc?

share|improve this question

1 Answer 1

I think this will end up being a personal preference answer, but I prefer the rsync+ssh solution because

  1. ssh is always installed these days, but stunnel isn't always available.
  2. I don't have to manage yet another service (I'm already managing sshd)
  3. all of my troubleshooting happens in one terminal window if I need it (-vvv on ssh)

An example command rsync -av -e ssh user@host:/remote/dir /this/dir/

Finally, you do have at least one more option: a VPN. After you set it up once, it has the benefit of being transparent while you use plain old rsync and any other machine-to-machine communication you care to perform. I first considered this a problem if one of the machines is hacked, but it's not any different from using ssh/stunnel in that regard.

share|improve this answer

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.