how to automatically synchronize files on different machines?
Linux - SoftwareThis 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
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.
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.
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!
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.
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!
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.