LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-02-2007, 12:55 PM   #1
parv
Member
 
Registered: Jul 2004
Location: USA
Distribution: Mint, Scientifc Linux, Ubuntu
Posts: 180

Rep: Reputation: 30
how to automatically synchronize files on different machines?


I want to know what is/are the tool(s) I can use to
synchronize files/directories in different machines?
I basically will work from one linux box running centos,
and I'd like to check if there are files need to be
updated/moved from another machine running debian.
Preferably I can specify the directories/files that
I'd like to check for synchronization.

It is okay that I have to key in the password to
login to the debian machine. I've used CVS in the past
while working with others in the same environment.
But I guess my task now is not that much complex so
I just need some simple tool(s) to get this done.

Many thanks.
 
Old 02-02-2007, 01:08 PM   #2
Harlin
Member
 
Registered: Dec 2004
Location: Atlanta, GA U.S.
Distribution: I play with them all :-)
Posts: 316

Rep: Reputation: 30
If it's file system-oriented, then rsync would be your best bet.

Harlin Seritt
 
Old 02-02-2007, 05:09 PM   #3
parv
Member
 
Registered: Jul 2004
Location: USA
Distribution: Mint, Scientifc Linux, Ubuntu
Posts: 180

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Harlin
If it's file system-oriented, then rsync would be your best bet.

Harlin Seritt
I tried and I believe rsync serves my needs.
Thanks very much.
 
Old 02-02-2007, 06:28 PM   #4
Harlin
Member
 
Registered: Dec 2004
Location: Atlanta, GA U.S.
Distribution: I play with them all :-)
Posts: 316

Rep: Reputation: 30
No problem!

For a while, at work we were using scp but the content started to exceed 100GB, so we needed something that wouldn't take all night to sync. Rsync only moves over files that are not there already OR the data in a file that is not there already. Good luck!

Harlin Seritt
 
Old 02-02-2007, 06:49 PM   #5
parv
Member
 
Registered: Jul 2004
Location: USA
Distribution: Mint, Scientifc Linux, Ubuntu
Posts: 180

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Harlin
No problem!

For a while, at work we were using scp but the content started to exceed 100GB, so we needed something that wouldn't take all night to sync. Rsync only moves over files that are not there already OR the data in a file that is not there already. Good luck!

Harlin Seritt
I also used scp sometimes but to move the entire directory without thinking of only
updating those have been changed. In this sense, rsync is pretty good. Have tried it
and like it very much. Need to get familiar with various options over the course though.
 
Old 02-02-2007, 11:08 PM   #6
tessier5894
LQ Newbie
 
Registered: Jul 2005
Distribution: RedHat
Posts: 15

Rep: Reputation: 0
Did any of you try UNISON, I am looking at it to keep a Linux laptop in sync with my main machine and network. I haven't set this up yet and just thought that you too have taken the paths I looked at before. Each of these takes some script writing to automate and UNISON seemed to be able to handle this on boot-up.

Looking for advise before I spend hours trying something that others may have dismissed!

Thanks,
TomT...
 
Old 02-03-2007, 06:52 AM   #7
Harlin
Member
 
Registered: Dec 2004
Location: Atlanta, GA U.S.
Distribution: I play with them all :-)
Posts: 316

Rep: Reputation: 30
I took a look at Unison and it appears more complicated as a pure file system sync. However, if this can run at boot up as you say, I don't know of any other tool that can do that -- it would definitely be worth using in your situation. I carry my laptop everywhere -- work, home, beer garden, coffee place, etc -- so I hardly would need something in that area. Good luck.

Regards,

Harlin Seritt
 
Old 02-03-2007, 11:31 AM   #8
tessier5894
LQ Newbie
 
Registered: Jul 2005
Distribution: RedHat
Posts: 15

Rep: Reputation: 0
Harlin,

I maintain my home directory on my RAID backup up server. That way I can move from laptop to desktop without seeing any difference in my home environment. That is everything looks the same thus my productivity is very high.

The problem I have always had is if I travel with my laptop I had to look in as root and setup a tunnel to my server then log in as me so everything was the same.

What I wanted is an automatic way to just keep /home/myhome on the laptop and keep it sync'ed every time I used it. When it was on my network it would just mirror what is on the server. So I didn't loose the central backup'ed up location. When I was travelling I don't need to tunnel I can just use the laptop. Once back in the office UNISON would sync up the systems.

I haven't done it yet but that is my understanding of what it would do. I am not travelling that much right now so my urgency isn't very high. Just looking for other approaches! I use rsync in other ways but this home directory idea looked more workable in UNISON.

TomT...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
synchronize contents two files with a bash script paul_mat Linux - Software 5 01-17-2007 07:31 AM
Software to synchronize your files between two systems? matthias_k Linux - Software 1 11-03-2006 10:22 AM
Copy Files across two machines. abhijeetudas Linux - Security 6 04-25-2005 04:50 AM
Diff on files which are on seperate machines subu_s Programming 1 12-06-2004 07:55 AM
Automatically mounting to other machines ankitgdit Linux - Security 1 08-08-2003 11:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration