l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
December 2: Social gathering
Next Installfest:
TBD
Latest News:
Nov. 18: Club officer elections
Page last updated:
2004 Mar 30 11:45

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
[vox-tech] rsync as an installation / update tool
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vox-tech] rsync as an installation / update tool



First, let me rave about rsync. It is easy to use, very fast, and can be used directly with ssh, another favorite tool of mine. I first started to use it to back up my laptop's home directory onto a desktop, like this:

$rsync -vax -e ssh --exclude=mnt/ --exclude=some_file --delete-excluded /home username@desktop:/path_to_backup_folder

I put this one line in a script for ease of use. If many exclusions are desired, a list can be put in a text file to be read by rsync.

This week I got a wild idea to use rsync as a means of "installing" and "updating" gentoo linux on computers with similar (but not identical) hardware. I have 4 Pentium3 boxes that I use for engineering simulations. I had installed gentoo linux on one computer a couple months ago, but the others had RedHat 9. I love gentoo, but I didn't want to spend hours converting them all if I could avoid it. So my idea was to wipe redhat, re-partition the drive (if necessary), install the _basic_ stage3 gentoo install using the "livecd", and rsync over everything else from the computer with gentoo already installed. Here is the rsync command I used:

#rsync -va -e ssh --exclude-from=exclude_file --delete-after root@gentoo_computer:/ /

exclude_file
------------
dev/
home/
mnt/
proc/
root/
sys/
etc/fstab
etc/X11/XF86Config
etc/hostname
etc/hosts
etc/conf.d/net
boot/grub/grub.conf

Since I have different video cards and different partition schemes, I have to configure XF86Config, fstab, and grub.conf manually. But almost everything else copies over and works automatically, such as firewall, ntp, and logrotate settings. Now I just need to download and compile updates for one computer, and then use the same rsync command to update the other 3.

So far, I have been successful with one computer and am waiting to see if any bugs appear before doing the other 2. Any comments? Are there any potential pitfalls to maintaining computers this way?

Regards,
Jonathan
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.