View Full Version : [ubuntu] Networking

July 23rd, 2008, 08:23 PM
I currently have two Ubuntu servers setup, let's say one is ip1 and the other is ip2. I am currently in the office where the ip1 server is present and therefore I can download and view folders/files quickly and easily, but the other office where ip2 is located half way around the world and takes me forever/endless hours to download files - is there a way for ip1 to be constantly connected to ip2 and have the files from ip2 transferred over to ip1 automatically as a direct copy so that I am able to view it more quickly and efficiently?

July 23rd, 2008, 08:37 PM
I'm just getting into these waters myself, but wouldn't you be able to sftp into ip2 from ip1 to create your connection? I don't know if this would address your download speed, but at least you'd be connected.

July 23rd, 2008, 08:39 PM
Yes. Use rsync :)

July 23rd, 2008, 08:42 PM

are further explainations possible?

July 23rd, 2008, 08:45 PM
How are you getting these files from overseas? Samba share or FTP??? Should all the data stored on these servers be in synch or are we talking about certain directories? Would it be easier to set up on samba share directory should synch up once every night? You can use 'rsync'... I don't know, lots of options available.

July 23rd, 2008, 08:46 PM
You can set-up a 'cron' job so that way the rsynch happens automatically at a certain time when both offices are not accessing particular directory.

July 23rd, 2008, 08:50 PM
cron = http://www.unixgeeks.org/security/newbie/unix/cron-1.html

rsynch = http://www.ss64.com/bash/rsync.html

July 23rd, 2008, 09:03 PM
i can access ip2 just through adding a network onto my personal pc, it's a ftp over there

July 23rd, 2008, 09:11 PM


July 23rd, 2008, 09:28 PM
how do I install rsync?

July 23rd, 2008, 09:31 PM
Who is the sys admin for this server? I believe it's installed by default on Ubu Server, if not then whoever admins would need to 'sudo apt-get install rsync' at CLI...

July 23rd, 2008, 09:33 PM
I got confused thinking the Ubuntu distro didnt have it (typo) thanks for the help

July 23rd, 2008, 09:37 PM
No prb, good luck! Using a syncing app is a lot easier than trying to figure out how to turn two boxes on either side of the planet into a 'high availability linux cluster with fail over and load balancing' yadda yadda....:)

July 24th, 2008, 02:51 PM
From the link http://everythinglinux.org/rsync/ it says to use these following command lines to use rsync itself

rsync --verbose --progress --stats --compress --rsh=/usr/local/bin/ssh
--recursive --times --perms --links --delete \
--exclude "*bak" --exclude "*~" \
/www/* webserver:simple_path_name

but I get confused on what /www/* is suppose to be along with webserver and simple_path_name...whoever wrote this tutorial sort of fudges it in the end...

July 24th, 2008, 04:57 PM
still need help

July 28th, 2008, 03:23 PM