Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Tunneling rsync to another server on remote site??

Got problems with your B2 or B3? Share and get helped!
Post Reply
Moloko
Posts: 51
Joined: 12 Feb 2010, 00:50

Tunneling rsync to another server on remote site??

Post by Moloko »

Hi all,

Maybe this already has been covered, if so I would really like to have the link to the answer...


My problem is:

I have BubbaTWO at my home, and I would like to make a backup to a remote server located on a different/remote location.

My question are:
Which solutions do you propose:
- tunneling the traffic (ho do I do that with my Bubba??)
- using another transfer protocol instead of ssh? Which one?
- other tips or trick?
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: Tunneling rsync to another server on remote site??

Post by Ubi »

this has been covered extensively in other threads. Please read these first
jovisuk
Posts: 65
Joined: 12 Sep 2010, 04:20

Re: Tunneling rsync to another server on remote site??

Post by jovisuk »

Hi, I was passed this link by a user in this forum:

http://www.howtoforge.com/mirroring_with_rsync

Also, there is:

http://forum.excito.net/viewtopic.php?t=415
ryz
Posts: 183
Joined: 12 Feb 2009, 06:03

Re: Tunneling rsync to another server on remote site??

Post by ryz »

What to use to do a backup depends on so many different thinks. What type of server are the remote server? A Windows or a Linux host. Can you install program on the server? How do you want the backup to work?

I myself uses rdiff-backup which is very similar to rsync with the added bonus that you can have incremental backups and not just a snapshot which means that you can go back to an older backup version if you need to. Thats very good if you accidentally deleted some file and do not realize it until after you have been running an backup. With rsync you are screwed not so with rdiff.backup. The problem with rdiff-backup is that you have to have the same version of rdiff-backup installed on both machines.

Tunneling with ssh is most likely the easiest solution but then it depends on which backup program and its capabilities.
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: Tunneling rsync to another server on remote site??

Post by Ubi »

you can do incremental backups with Rsync. It's the basic principle of the protocol.
ryz
Posts: 183
Joined: 12 Feb 2009, 06:03

Re: Tunneling rsync to another server on remote site??

Post by ryz »

With incremental backup I did not mean to send only updated data to the remote server but rather to be able to keep several days of backups so that I can go back to an older version of the file then the one from the latest backup. Rsync seems to be able to do something similar with the --backup switch but not near as good as I understand it. Rdiff-backup uses the rsync libraries to sync the files but adds some magic for incremental backups for example:

This command restores host.net::/remote-dir/file as it was 10 days ago into a new location /tmp/file.
rdiff-backup -r 10D host.net::/remote-dir/file /tmp/file
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: Tunneling rsync to another server on remote site??

Post by Ubi »

again you can do this with rsync as well but admittedly not as easily as your proposed solution, which may indeed be a better way for non-professional users. You reckon it'd be useful to write a small page about it in the bubba wiki? I guess a small example and a pointer to the rdiff website should suffice.

ubi
Moloko
Posts: 51
Joined: 12 Feb 2010, 00:50

Re: Tunneling rsync to another server on remote site??

Post by Moloko »

I've already seen the proposed threads, but the issue that I haven't got any clarity in yet is the security/privacy part when rsync'ing between two servers located on two different sites.

How can I be sure that the traffic when syncing is secure and not eavesdropping on?
Should I use some kind of VPN tunneling?
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: Tunneling rsync to another server on remote site??

Post by Ubi »

Rsync by default already tunnels over SSH (I suppose you can run it unencrypted by using an rsync server process, but I've never done this). As rdiff-backup uses rsync as a back-end (at least that's how I understand it works) this also runs over SSH.

ubi
Moloko
Posts: 51
Joined: 12 Feb 2010, 00:50

Re: Tunneling rsync to another server on remote site??

Post by Moloko »

Rsync by default already tunnels over SSH
Ok, good to hear!
Post Reply