Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
I have two machines on which I need to sync certain
directory trees. That is, one machine is "live" and
the directory trees are being updated in the course of doing business. The other one is on "standby".
The reason for this is that I am using an old, small, slow server with an older Slackware distribution. I would like to upgrade to a bigger, newer, faster machine, and the latest distribution with 2.6 kernel.
There is a great deal of stuff to get working on the new machine, and in the meantime, the business keeps chunking along. I cannot in any manner refrain from
using the server while I get the new one up. So by the
time I get the server working, many things will have
changed, and I will have to re-transfer the business files. Yuck!
The synchronization does not have to be in real time.
It can happen in the wee hours via a chron job. There are
three directory trees involved: one is 6.5gig, another 35 gig, and the third is IIRC about 4 gig. The two machines
are connected with a gigabit ethernet.
The 35-gig tree was espcially painful to transfer, because FTP just woulnd't make it through the whole tar file. I wound up gzipping it down to 25-gig, and using
split to bust it into 25 1-gig pieces. Then ftp'ed it all and ran md5sum on all the pieces on each machine. Then compared the md5 signatures to make sure the transfers were OK, then cat'ed them all together, gunzip'ed, untar'd. I really don't want to have to do that again.
So: is there a utility that can reasonably painlessly do such synchronization? Thanks in advance,
Rsync is my savior. I was doing a major overhaul of my systems, including a revamped file/dhcp/tftp/etc server. It took me about a month, off and on, to get everything together. Using rsync, I could keep all of the backups up to date while continuing to work during the whole time. When the time came to "switch", I just ran the rsync scripts one last time and then made the switch.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.